Ejemplo n.º 1
0
 public override void Dispose()
 {
     watcher.Cancel();
     watcher.Changed -= WatcherChanged;
     watcher.Dispose();
     base.Dispose();
 }
Ejemplo n.º 2
0
 void StopWatcher()
 {
     if (watcher != null)
     {
         watcher.Cancel();
         watcher.Changed -= WatcherChanged;
         watcher.Dispose();
         watcher = null;
     }
 }
Ejemplo n.º 3
0
 public void Dispose()
 {
     reboot_required_monitor.Cancel();
     reboot_required_monitor.Changed -= HandleRebootRequired;
     reboot_required_monitor.Dispose();
 }