protected override void OnStop()
 {
     try
     {
         _fileWatcher.Stop();
     }
     catch (Exception e)
     {
         _logger.ErrorFormat("Failed to stop service Exception {0}", e);
         throw;
     }
 }
示例#2
0
 private static void Stop()
 {
     _fileWatcher.Stop();
 }