开发者

When an application pool is recycled in IIS, is the Application_End called?

开发者 https://www.devze.com 2023-01-10 09:28 出处:网络
I have some clean up stuff in Application_End method in Global.asax. When an application开发者_运维百科 pool is recycled in IIS, is the Application_End called? or do I need to place the clean up code

I have some clean up stuff in Application_End method in Global.asax. When an application开发者_运维百科 pool is recycled in IIS, is the Application_End called? or do I need to place the clean up code in any other function?


One thing is certain dispose gets called before Applicaion_End. After adding logging to Application_End to show you that it does indeed get called by recycle, see what happens when you add an infinite loop to dispose. Does End get called?

You should also note that Application_End gets is supposed to be called when ever the AppDomain gets unloaded. This includes things like web.config changes.

0

精彩评论

暂无评论...
验证码 换一张
取 消