Is there any functional difference between doing clean up in IHttpModule.Dispose vs doing clean up in HttpApplication.Dispose event handler? Have a custom HttpModule for bootstraping IOC container and want to make sure IOC container inits and disposes properly.
The lifecycle of an HttpModule is tightly integrated with the lifecycle of an HttpApplication. Instances of HttpModule are generated when the application is started and destroyed when the application is disposed of.
Member
38 Points
138 Posts
IHttpModule.Dispose vs HttpApplication.Disposed
Mar 13, 2015 11:05 AM|skmcfadden|LINK
Is there any functional difference between doing clean up in IHttpModule.Dispose vs doing clean up in HttpApplication.Dispose event handler? Have a custom HttpModule for bootstraping IOC container and want to make sure IOC container inits and disposes properly.
thanks
scott
All-Star
27134 Points
2676 Posts
Re: IHttpModule.Dispose vs HttpApplication.Disposed
Mar 15, 2015 11:17 PM|Shawn - MSFT|LINK
Hi,
The lifecycle of an HttpModule is tightly integrated with the lifecycle of an HttpApplication. Instances of HttpModule are generated when the application is started and destroyed when the application is disposed of.
For more information, you could refer to:
http://www.c-sharpcorner.com/uploadfile/chinnasrihari/http-modules-in-Asp-Net-request-life-cycle/
http://erraticdev.blogspot.in/2011/01/how-to-correctly-use-ihttpmodule-to.html
Regards