Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Owin/Katana - Integration with ASP.NET Request Lifecycle

Owin/Katana could be hosted either with IIS or self hosting. When hosting over IIS, what happens to the ASP.NET Request Life cycle? Will it still run as before? (BeginRequest, etc ...). What basically happens?

like image 383
Bill Avatar asked Apr 09 '14 14:04

Bill


1 Answers

Yes, it's the same and the OWIN/Katana middleware can be interleaved at the same stanges in IIS as needed. Check the UseStageMarker API to let IIS know when you want the middleware to run:

http://msdn.microsoft.com/en-us/library/microsoft.owin.extensions.integratedpipelineextensions.usestagemarker%28v=vs.111%29.aspx

Also, this goes into some details as well:

http://www.asp.net/aspnet/overview/owin-and-katana/owin-middleware-in-the-iis-integrated-pipeline

like image 57
Brock Allen Avatar answered Sep 29 '22 04:09

Brock Allen