public override void Flush() { if (_disposed) throw new ObjectDisposedException("_stream"); Task.Run(async () => await _stream.FlushAsync()).Wait(); }