// // Shuts down the AppDomain // static void ShutdownAppDomain(object args) { queue_manager.Dispose(); // This will call Session_End if needed. InternalCache.InvokePrivateCallbacks(); // Kill our application. HttpApplicationFactory.Dispose(); ThreadPool.QueueUserWorkItem(new WaitCallback(DoUnload), null); }
// // Shuts down the AppDomain // static void ShutdownAppDomain() { queue_manager.Dispose(); // This will call Session_End if needed. InternalCache.InvokePrivateCallbacks(); // Kill our application. HttpApplicationFactory.Dispose(); ThreadPool.QueueUserWorkItem(delegate { try { DoUnload(); } catch { } }); }
static void SetOfflineMode(bool offline, string filePath) { if (!offline) { app_offline_file = null; if (HttpApplicationFactory.ApplicationDisabled) { HttpRuntime.UnloadAppDomain(); } } else { app_offline_file = filePath; HttpApplicationFactory.DisableWatchers(); HttpApplicationFactory.ApplicationDisabled = true; InternalCache.InvokePrivateCallbacks(); HttpApplicationFactory.Dispose(); } }