public void Dispose() { lock (flushLock) { BaseStream.Dispose(); writer.Flush(); writer.Dispose(); diagnosticOutputStream.Dispose(); } }
public void Dispose() { baseStream?.Dispose(); }
public void Dispose() { lock (sync) baseStream.Dispose(); }