Ejemplo n.º 1
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;
 }
Ejemplo n.º 2
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;
 }
Ejemplo n.º 3
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;
 }
Ejemplo n.º 4
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;
 }
Ejemplo n.º 5
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);
        }