ICSharpCode.SharpZipLib.Zip.FastZipEvents.OnCompletedFile C# (CSharp) Method

OnCompletedFile() public method

Fires the CompletedFile delegate
public OnCompletedFile ( string file ) : bool
file string The file whose processing has been completed.
return bool
        public bool OnCompletedFile(string file)
        {
            bool result = true;
            CompletedFileHandler handler = CompletedFile;
            if (handler != null) {
                var args = new ScanEventArgs(file);
                handler(this, args);
                result = args.ContinueRunning;
            }
            return result;
        }

Usage Example

Example #1
0
 private void AddFileContents(string name, Stream stream)
 {
     //IL_0008: Unknown result type (might be due to invalid IL or missing references)
     //IL_0059: Unknown result type (might be due to invalid IL or missing references)
     if (stream == null)
     {
         throw new ArgumentNullException("stream");
     }
     if (buffer_ == null)
     {
         buffer_ = new byte[4096];
     }
     if (events_ != null && events_.Progress != null)
     {
         StreamUtils.Copy(stream, (Stream)(object)outputStream_, buffer_, events_.Progress, events_.ProgressInterval, this, name);
     }
     else
     {
         StreamUtils.Copy(stream, (Stream)(object)outputStream_, buffer_);
     }
     if (events_ != null)
     {
         continueRunning_ = events_.OnCompletedFile(name);
     }
 }
All Usage Examples Of ICSharpCode.SharpZipLib.Zip.FastZipEvents::OnCompletedFile