Exemplo n.º 1
0
        public void Dispose()
        {
            if (_disposed)
            {
                return;
            }

            if (_unsubscribe != null)
            {
                _unsubscribe();
                _unsubscribe = null;
            }

            _received.Dispose();

            _disposed = true;
        }
Exemplo n.º 2
0
        void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }
            if (disposing)
            {
                if (_unsubscribe != null)
                {
                    _unsubscribe();
                    _unsubscribe = null;
                }

                _received.Dispose();
            }

            _disposed = true;
        }
Exemplo n.º 3
0
        protected virtual void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }
            if (disposing)
            {
                _sent.Dispose();
                _received.Dispose();

                _endpointCache.Clear();

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

                ServiceBusFactory.ConfigureDefaultSettings(x => x.SetEndpointCache(null));
            }

            _disposed = true;
        }
 public void Dispose()
 {
     _endpoint.Dispose();
     _received.Dispose();
     _sent.Dispose();
 }