예제 #1
0
        public void OnFileFailure(string file, Exception e)
        {
            if (this.FileFailure == null)
            {
                this.alive_ = false;
                return;
            }
            ScanFailureEventArgs scanFailureEventArgs = new ScanFailureEventArgs(file, e);

            this.FileFailure(this, scanFailureEventArgs);
            this.alive_ = scanFailureEventArgs.ContinueRunning;
        }
예제 #2
0
        public void OnDirectoryFailure(string directory, Exception e)
        {
            if (this.DirectoryFailure == null)
            {
                this.alive_ = false;
                return;
            }
            ScanFailureEventArgs scanFailureEventArgs = new ScanFailureEventArgs(directory, e);

            this.DirectoryFailure(this, scanFailureEventArgs);
            this.alive_ = scanFailureEventArgs.ContinueRunning;
        }
예제 #3
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;
     }
 }
예제 #4
0
 /// <summary>
 /// Raise the DirectoryFailure event.
 /// </summary>
 /// <param name="directory">The 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;
     }
 }
예제 #5
0
파일: FastZip.cs 프로젝트: Basilid/Spheres
		/// <summary>
		/// Raises the <see cref="FileFailure">file failure delegate</see>.
		/// </summary>
		/// <param name="file">The file causing the failure.</param>
		/// <param name="e">The exception for this failure.</param>
		/// <returns>A boolean indicating if execution should continue or not.</returns>
		public bool OnFileFailure(string file, Exception e)
		{
			bool result = false;
			if ( FileFailure != null ) {
				ScanFailureEventArgs args = new ScanFailureEventArgs(file, e);
				FileFailure(this, args);
				result = args.ContinueRunning;
			}
			return result;
		}
예제 #6
0
파일: FastZip.cs 프로젝트: Basilid/Spheres
		/// <summary>
		/// Raise the <see cref="DirectoryFailure">directory failure</see> event.
		/// </summary>
		/// <param name="directory">The directory causing the failure.</param>
		/// <param name="e">The exception for this event.</param>
		/// <returns>A boolean indicating if execution should continue or not.</returns>
		public bool OnDirectoryFailure(string directory, Exception e)
		{
			bool result = false;
			if ( DirectoryFailure != null ) {
				ScanFailureEventArgs args = new ScanFailureEventArgs(directory, e);
				DirectoryFailure(this, args);
				result = args.ContinueRunning;
			}
			return result;
		}
예제 #7
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;
     }
 }
예제 #8
0
 /// <summary>
 /// Raise the DirectoryFailure event.
 /// </summary>
 /// <param name="directory">The 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;
     }
 }