public override void Write(byte[] buffer, int offset, int count) { using (TransactionScope scope = new TransactionScope()) _stream.Write(buffer, offset, count); }