I try to get more understanding of the role of the Owin packages (Microsoft.Owin
) in ASP.NET 4 (MVC 5) applications.
When I create a new MVC application with the wizard, it sets me up with an Owin Startup
class, but the configuration therein deals only with authentication.
In contrast to ASP.NET 5, there seems to be no need to do a app.RunMvc()
- or in fact any kind of app.Run*()
or mentioning what comes at the end of the pipeline.
That begs the question of how the apparently existing Owin pipeline is brought into ASP.NET in ASP.NET 4 applications where the dependency on System.Web
still exists.
I assume that
- in ASP.NET 4, the Owin pipeline always implicitly ends with standard ASP.NET routing (from
System.Web.Routing
) which, in MVC apps, is usually configured withMapRoute
on theRouteCollection
and comes down to anMvcRouteHandler
and - in ASP.NET 5, the Owin pipeline should be explicitly ended with an
app.Run*()
because nothing comes after its end by default.
Is that correct?