Tu *_*ang 9 c# asp.net iis application-pool asp.net-mvc-4
在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.
Run Code Online (Sandbox Code Playgroud)
我的问题是:它是否突然终止所有飞行中的请求?如果没有,那么在appdomain重新加载期间到达的请求会发生什么?或者重装时间微不足道?
我试着环顾四周,但找不到任何有关此事的信息.
谢谢 :)