private void OnError(object source, ErrorEventArgs e) { Logger.Error("Error occurred for FileSystemWatcher"); EnableRaisingEvents = false; }