예제 #1
0
 protected override void OnStop()
 {
     try
     {
         watcher.Stop();
     }
     finally
     {
         watcher.Dispose();
     }
 }
예제 #2
0
 protected override void OnStop() => watcher.Stop();
예제 #3
0
 protected override void OnStop()
 {
     watcher.Stop();
     Thread.Sleep(1000);
 }