Beispiel #1
0
        void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }
            if (disposing)
            {
                _transport.Dispose();
                _transport = null;

                _errorTransport.Dispose();
                _errorTransport = null;
            }

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

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

            _disposed = true;
        }