示例#1
0
        private void ReleaseResources()
        {
            _channelTimer.Change(Timeout.Infinite, Timeout.Infinite);
            _channelTimer.Dispose();

            _cancelOperation.Cancel(false);
            if (_manager != null)
            {
                _manager.Close();
            }

            if (_channel != null)
            {
                _channel.Closed -= Channel_Closed;
            }
        }