Example #1
0
 //
 // 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);
 }
Example #2
0
 //
 // 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 {
         }
     });
 }