Пример #1
0
        protected override void OnStop()
        {
            watcher.Stop();
            Thread.Sleep(1000);

            Logger.Log("FileWatcherService stopped.");
        }
Пример #2
0
        protected override async void OnStop()
        {
            await logger.RecordEntry("Cервис остановлен");

            watcher.Stop();
        }
Пример #3
0
 protected override void OnStop()
 {
     watcher.Stop();
     Thread.Sleep(1000);
 }