In ASP.NET, when you modify web.config file, IIS will recycle the app pool. Now, I am storing my configs in the DB instead of web.config and would like to simulate a similar behavior. My current solution is to call HttpRuntime.UnloadAppDomain().
The description on MSDN says:
Terminates the current application. The application restarts the next time a request is received for it.
My question here is: Does it abruptly terminate all in-flight requests? If not, what happens to requests that arrive during the time the appdomain gets reloaded? Or the reload time is insignificant?
I tried looking around but cannot find any information regarding this.
Thanks :)