void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }
            if (disposing)
            {
                _messages.Dispose();
            }

            _disposed = true;
        }
Beispiel #2
0
        protected virtual void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }
            if (disposing)
            {
                _sinks.Dispose();
                _sinks = null;
            }

            _disposed = true;
        }
        protected virtual void Dispose(bool disposing)
        {
            if (!disposing || _disposed)
            {
                return;
            }

            if (_items != null)
            {
                _items.Dispose();
            }

            _items    = null;
            _disposed = true;
        }
Beispiel #4
0
        protected override void Dispose(bool disposing)
        {
            base.Dispose(disposing);

            if (_disposed)
            {
                return;
            }
            if (disposing)
            {
                _consumerSinks.Dispose();
                _consumerSinks = null;
            }

            _disposed = true;
        }
        protected virtual void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }
            if (disposing)
            {
                _endpointConfigurators.Dispose();
                _endpointConfigurators = null;

                _transportTypes.Dispose();
                _transportTypes = null;
            }
            _disposed = true;
        }
        protected virtual void Dispose(bool disposing)
        {
            if (disposing && !_disposed)
            {
                if (_started)
                {
                    Stop();
                }

                if (_subscriptions != null)
                {
                    _subscriptions.Dispose();
                }
                _subscriptions = null;

                _disposed = true;
            }
        }
Beispiel #7
0
        protected void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }
            if (disposing)
            {
                _messageRequested.Close();
                _messageRequested = null;

                _messageWaiting.Close();
                _messageWaiting = null;

                _complete.Close();
                _complete = null;

                _messages.Dispose();
                _messages = null;
            }

            _disposed = true;
        }
Beispiel #8
0
 public void Dispose()
 {
     _sinks.Dispose();
 }
Beispiel #9
0
 public override void Dispose()
 {
     _storage.WriteLock(x => x.Clear());
     _storage.Dispose();
 }