本文介绍了什么是触发Application_End事件的情景?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Asp.net具有发生 Application_End 事件当应用程序来结束,这样

Asp.net has an Application_End event which occurs when the application comes to end, like this

void Application_End(object sender, EventArgs e)
{
}

我的问题是这样的:?什么时候该事件发生在真实的,即什么样的情况下触发它

My question is the following: when does this event occurs in real, i.e. what kind of situations trigger it?

假设我有一个运行的银行Web应用程序全天候,它不断与放大器执行;从数以千计的地方访问的时间,然后将这个 Application_End 事件发生的时候?什么样的情况下,负责本?

Suppose I have a banking web application running 24x7x365, which executes continuously & accesses from thousands of places at a time, then when would this Application_End event occur? What kinds of situations are responsible for this?

推荐答案

Application_End 事件获取或解雇的IIS池被回收时,当您更改bin文件夹或web.config文件。您应该更改默认的IIS设置来安排循环每天一次在非高峰时间。

The Application_End event gets fired when the IIS pool is recycled or when you make changes to the bin folder or web.config file. You should change the default IIS setting to schedule a recycle once a day on offpeak hours.

这篇关于什么是触发Application_End事件的情景?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 23:46