Пример #1
0
        public void Dispose()
        {
            if (_disposed)
            {
                return;
            }

            _readBuffer.Dispose();
            _writeBuffer.Dispose();
            _stream.Dispose();

            _disposed = true;
        }
Пример #2
0
        public void Complete()
        {
            if (completed)
            {
                return;
            }

            _readBuffer.Dispose();
            _writeBuffer.Dispose();
            _stream.Dispose();

            completed = true;
        }