Example #1
0
 private void RaiseProgressEvent()
 {
     // Raise the event by using the () operator.
     if (ProgressEvent != null)
     {
         PumpProgressEventArgs args = new PumpProgressEventArgs();
         args.BytesRead           = BytesRead;
         args.BytesWritten        = BytesWritten;
         args.SourcePosition      = InputStream.Position;
         args.DestinationPosition = OutputStream.Position;
         ProgressEvent(this, args);
     }
 }
Example #2
0
        private void RaiseProgressEvent()
        {
            // Raise the event by using the () operator.
            if (ProgressEvent == null)
            {
                return;
            }

            PumpProgressEventArgs args = new PumpProgressEventArgs
            {
                BytesRead           = BytesRead,
                BytesWritten        = BytesWritten,
                SourcePosition      = InputStream.Position,
                DestinationPosition = OutputStream.Position
            };

            ProgressEvent(this, args);
        }
Example #3
0
 private void RaiseProgressEvent()
 {
     // Raise the event by using the () operator.
     if (ProgressEvent != null)
     {
         PumpProgressEventArgs args = new PumpProgressEventArgs();
         args.BytesRead = BytesRead;
         args.BytesWritten = BytesWritten;
         args.SourcePosition = InputStream.Position;
         args.DestinationPosition = OutputStream.Position;
         ProgressEvent(this, args);
     }
 }