示例#1
0
        public void Dispose()
        {
            foreach (var consumer in _consumers)
            {
                consumer.Dispose();
            }

            _outboundChannel?.Dispose();
            _connection?.Dispose();
        }
示例#2
0
        public void Dispose()
        {
            if (_model != null)
            {
                _model.Dispose();
                _model = null;
            }

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