System.Web.HttpApplicationFactory.DisableWatchers C# (CSharp) Method

DisableWatchers() static private method

static private DisableWatchers ( ) : void
return void
		internal static void DisableWatchers ()
		{
			lock (watchers_lock) {
				foreach (FileSystemWatcher watcher in watchers)
					watcher.EnableRaisingEvents = false;
			}
		}

Usage Example

Example #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);
         }
     });
 }
All Usage Examples Of System.Web.HttpApplicationFactory::DisableWatchers