protected override void OnStop() { try { watcher.Stop(); } finally { watcher.Dispose(); } }
protected override void OnStop() => watcher.Stop();
protected override void OnStop() { watcher.Stop(); Thread.Sleep(1000); }