public override void Write(byte[] buffer, int offset, int count) { lock(this.l) { if (this.aborted) { this.Exception = new AbortException(); throw this.exception; } } this.Stream.Write(buffer, offset, count); }