DisableWatchers() static private method

static private DisableWatchers ( ) : void
return void
Exemplo n.º 1
0
 public static void UnloadAppDomain()
 {
     //
     // TODO: call ReleaseResources
     //
     domainUnloading = true;
     HttpApplicationFactory.DisableWatchers();
     ThreadPool.QueueUserWorkItem(delegate {
         try {
             ShutdownAppDomain();
         } catch (Exception e) {
             Console.Error.WriteLine(e);
         }
     });
 }
Exemplo n.º 2
0
 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();
     }
 }