When exactly does Application_End get called and how can I manually cause this?

前端 未结 2 909
遇见更好的自我
遇见更好的自我 2021-01-18 03:20

I know that the event handler for this event is called when the application pool is recycled by IIS, but when does that happen? What about if using the built-in Visual Studi

2条回答
  •  無奈伤痛
    2021-01-18 04:05

    An application pool will recycle when you change the web.config or the /bin directory, or some of the recycle limits are hit on the application pool configuration. The same is true for Cassini except it doesn't have an application pool, so it will trigger any time the web.config or /bin directory is changed. I am not sure about killing the instance of Cassini.

提交回复
热议问题