Пример #1
0
        protected virtual void Dispose(bool disposing)
        {
            if(_disposed) return;

            _frameWriter.Dispose();
            _heartbeatManager.Dispose();
            if(_cascadeDispose)
            {
                _reader.Dispose();
                _writer.Dispose();
            }

            _disposed = true;
        }
Пример #2
0
        protected virtual void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }

            _frameWriter.Dispose();
            if (_cascadeDispose)
            {
                _reader.Dispose();
                _writer.Dispose();
            }

            _disposed = true;
        }