Exemple #1
0
        /// <summary>
        /// Disposes of this instance.
        /// </summary>
        public void Dispose()
        {
            if (!_isDisposed)
            {
                Close();

                _receiver.Dispose();
                _sender.Dispose();
                MessageDispatcher.Dispose();

                GC.SuppressFinalize(this);

                _isDisposed = true;
            }
        }
Exemple #2
0
        /// <summary>
        /// Disposes of this instance.
        /// </summary>
        public void Dispose()
        {
            if (!_isDisposed)
            {
                Close();

                _receiver.Dispose();
                _sender.Dispose();
                MessageDispatcher.Dispose();

                // Do not dispose of _logger.  This connection does not own it.

                GC.SuppressFinalize(this);

                _isDisposed = true;
            }
        }