// // 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 { } }); }