Ejemplo n.º 1
0
		/// <summary>
		/// Raise the directory failure event.
		/// </summary>
		/// <param name="directory">The directory.</param>
		/// <param name="e">The exception for this event.</param>
		public void OnDirectoryFailure(string directory, Exception e)
		{
			if ( DirectoryFailure != null ) {
				ScanFailureEventArgs args = new ScanFailureEventArgs(directory, e);
				DirectoryFailure(this, args);
			}
		}
Ejemplo n.º 2
0
 /// <summary>
 /// Raise the FileFailure event.
 /// </summary>
 /// <param name="file">The file name.</param>
 /// <param name="e">The exception detected.</param>
 public void OnFileFailure(string file, Exception e)
 {
     if (FileFailure == null)
     {
         alive = false;
     }
     else
     {
         ScanFailureEventArgs args = new ScanFailureEventArgs(file, e);
         FileFailure(this, args);
         alive = args.ContinueRunning;
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Raise the DirectoryFailure event.
 /// </summary>
 /// <param name="directory">Rhe directory name.</param>
 /// <param name="e">The exception detected.</param>
 public void OnDirectoryFailure(string directory, Exception e)
 {
     if (DirectoryFailure == null)
     {
         alive = false;
     }
     else
     {
         ScanFailureEventArgs args = new ScanFailureEventArgs(directory, e);
         DirectoryFailure(this, args);
         alive = args.ContinueRunning;
     }
 }
Ejemplo n.º 4
0
		/// <summary>
		/// Raises the file failure event.
		/// </summary>
		/// <param name="file">The file for this event.</param>
		/// <param name="e">The exception for this event.</param>
		public void OnFileFailure(string file, Exception e)
		{
			if ( FileFailure != null ) {
				ScanFailureEventArgs args = new ScanFailureEventArgs(file, e);
				FileFailure(this, args);
			}
		}
Ejemplo n.º 5
0
		/// <summary>
		/// Raise the FileFailure event.
		/// </summary>
		/// <param name="file">The file name.</param>
		/// <param name="e">The exception detected.</param>
		public void OnFileFailure(string file, Exception e)
		{
			if ( FileFailure == null ) {
				alive = false;
			} else {
				ScanFailureEventArgs args = new ScanFailureEventArgs(file, e);
				FileFailure(this, args);
				alive = args.ContinueRunning;
			}
		}
Ejemplo n.º 6
0
		/// <summary>
		/// Raise the DirectoryFailure event.
		/// </summary>
		/// <param name="directory">Rhe directory name.</param>
		/// <param name="e">The exception detected.</param>
		public void OnDirectoryFailure(string directory, Exception e)
		{
			if ( DirectoryFailure == null ) {
				alive = false;
			} else {
				ScanFailureEventArgs args = new ScanFailureEventArgs(directory, e);
				DirectoryFailure(this, args);
				alive = args.ContinueRunning;
			}
		}