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