public override void Flush() { Mutex.WaitOne(Timeout.Infinite, false); this.stream.Flush(); Mutex.ReleaseMutex(); }