应用生命周期中的ASP.NET [英] Application lifetime in ASP.NET

查看:160
本文介绍了应用生命周期中的ASP.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这应该是一个简单的问题,但我还没有设法找到对谷歌的答案。

This should be a simple question but I haven't managed to find the answer on google.

我想知道,在条款白痴能理解,正是应用程序生存期在ASP.NET指(因此,当你可以期望应用程序启动和结束事件来运行)。

I would like to know, in terms an idiot can understand, exactly what application lifetime means in ASP.NET (and therefore when you can expect application start and end events to run).

我认为,当你运行和停止IIS中的应用程序就是这样,但我看过的东西,表明它涉及到的请求数。

I assumed it would be when you run and stop the app in IIS, but I've read things that suggest it's related to number of requests.

推荐答案

默认情况下,生命周期开始与第一个请求到应用程序。它空闲超时后结束。

By default the lifetime starts with the first request to the app. And it ends after an idle timeout.

但是,这是可配置的基础上各种各样的东西(包括请求数)的IIS。

But this is configurable based on various things (including request count) in IIS.

和IIS7.5已启动应用程序的能力,当IIS启动,而不是等待第一个请求。

And IIS7.5 has the ability to start an application when IIS starts, rather than waiting for the first request.

这篇关于应用生命周期中的ASP.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆