13
In recent times I have tried to understand better about OWIN in the aspects of why to use it, how it works and how to use it. About why to use I have asked here and already convinced myself that the biggest motivation is to be able to leave the components of ASP.NET (MVC, Webapi, etc) more modular and independent of Assembly System.Web.dll to increase performance.
What I still don’t understand is how it works and how to use it. From what I understand it basically has a IDictionary<string, object>
called the Environment Dictionary and a delegate Func<IDictionary<string, object>, Task>
which basically points to a function that receives the Environment Dictionary and returns a Task
.
Hence I heard that this decouples the server application and allows the construction of complex execution pipelines. I really don’t understand how this works.
Also, to really use the OWIN, I know you use a class Startup
with a configuration function that receives an object that implements IAppBuilder
. What would be the role of this interface in all this? Besides, it seems that everything is connected with the use of the function Use
of that interface. Again, what this function actually does and how we actually use it?
I know it allows us to integrate Webapi, Identity, etc. But I still can’t understand how it all works and how to use it.
It is because it is still a new approach, which few people dominate. So there is little precise material on the subject.
– Leonel Sanches da Silva
It’s @Crood, I found a few things about OWIN out there. Basically I kind of "got used" to it for now, but I really wanted to understand the business. Even more now that will have the vNext ta most important understand this.
– SomeDeveloper
vNext is ". net without compiling". Dude, as far as I understand it, OWIN and other projects need to be migrated to other structures, so don’t stick to what we have so far. No RTM version yet
– Tiago César Oliveira
Here is a post about these changes: http://eduardopires.net.br/2014/05/o-futuro-asp-net-vnext-mvc-6/.
– SomeDeveloper
Favorite. I will try to answer soon.
– Leonel Sanches da Silva