public override int Read(byte[] buffer, int offset, int count) { int bytesRead = this.wrappedStream.Read(buffer, offset, count); if (this.OnRead != null) { this.OnRead(bytesRead); } return bytesRead; }