Пример #1
0
 private bool OnDirectoryFailure(string directory, Exception e)
 {
     DirectoryFailureHandler directoryFailure = DirectoryFailure;
     bool flag = directoryFailure != null;
     if (flag)
     {
         ScanFailureEventArgs args = new ScanFailureEventArgs(directory, e);
         directoryFailure(this, args);
         alive_ = args.ContinueRunning;
     }
     return flag;
 }
Пример #2
0
 public bool OnDirectoryFailure(string directory, Exception e)
 {
     bool continueRunning = false;
     DirectoryFailureHandler directoryFailure = DirectoryFailure;
     if (directoryFailure != null)
     {
         ScanFailureEventArgs args = new ScanFailureEventArgs(directory, e);
         directoryFailure(this, args);
         continueRunning = args.ContinueRunning;
     }
     return continueRunning;
 }
Пример #3
0
 private bool OnFileFailure(string file, Exception e)
 {
     bool flag = FileFailure != null;
     if (flag)
     {
         ScanFailureEventArgs args = new ScanFailureEventArgs(file, e);
         FileFailure(this, args);
         alive_ = args.ContinueRunning;
     }
     return flag;
 }
Пример #4
0
 public bool OnFileFailure(string file, Exception e)
 {
     FileFailureHandler fileFailure = FileFailure;
     bool continueRunning = fileFailure != null;
     if (continueRunning)
     {
         ScanFailureEventArgs args = new ScanFailureEventArgs(file, e);
         fileFailure(this, args);
         continueRunning = args.ContinueRunning;
     }
     return continueRunning;
 }