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