OnCompletedFile() public method

Fires the CompletedFile delegate
public OnCompletedFile ( string file ) : bool
file string The file whose processing has been completed.
return bool
Exemplo n.º 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);
     }
 }
Exemplo n.º 2
0
        void AddFileContents(string name, Stream stream)
        {
            if (stream == null)
            {
                throw new ArgumentNullException("stream");
            }

            if (buffer_ == null)
            {
                buffer_ = new byte[4096];
            }

            if ((events_ != null) && (events_.Progress != null))
            {
                StreamUtils.Copy(stream, outputStream_, buffer_,
                                 events_.Progress, events_.ProgressInterval, this, name);
            }
            else
            {
                StreamUtils.Copy(stream, outputStream_, buffer_);
            }

            if (events_ != null)
            {
                continueRunning_ = events_.OnCompletedFile(name);
            }
        }