private void ProcessFile(string path) { try { processFile.Process(new CaseFile(path, _fileDirectory)); } catch (Exception ex) { Logger.Error(ex); } }
private void OnChanged(object source, FileSystemEventArgs e) { try { processFile.Process(new CaseFile(e.FullPath, _fileDirectory)); } catch (Exception ex) { Logger.Error(ex); } }