HttpRuntime.UnloadAppDomain是否突然终止当前请求?

时间:2014-04-10 23:59:53

标签: c# asp.net asp.net-mvc-4 iis application-pool

在ASP.NET中,当您修改web.config文件时,IIS将回收应用程序池。现在,我将我的配置存储在DB而不是web.config中,并希望模拟类似的行为。我目前的解决方案是调用HttpRuntime.UnloadAppDomain()。

MSDN上的描述说:

Terminates the current application. The application restarts the next time a request is received for it.

我的问题是:它是否会突然终止所有飞行中的请求?如果没有,那么在appdomain重新加载期间到达的请求会发生什么?或者重装时间微不足道?

我试着环顾四周,但找不到任何有关此事的信息。

谢谢:)

0 个答案:

没有答案