Example #1
0
 protected virtual void OnBytesWritten(int bytesMoved)
 {
     if (BytesWritten != null) {
         var args = new ProgressStreamReportEventArgs(bytesMoved, _innerStream.Length, _innerStream.Position, false);
         BytesWritten(this, args);
     }
 }
Example #2
0
 protected virtual void OnBytesMoved(int bytesMoved, bool isRead)
 {
     if (BytesMoved != null) {
         var args = new ProgressStreamReportEventArgs(bytesMoved, _innerStream.Length, _innerStream.Position, isRead);
         BytesMoved(this, args);
     }
 }