public void Dispose() { if (_disposed) { return; } _readBuffer.Dispose(); _writeBuffer.Dispose(); _stream.Dispose(); _disposed = true; }
public void Complete() { if (completed) { return; } _readBuffer.Dispose(); _writeBuffer.Dispose(); _stream.Dispose(); completed = true; }