Пример #1
0
        public async Task CloseRpcClientAsync(string amqpNode)
        {
            IRpcClient _client = null;

            if (this._clientMap.TryGetValue(amqpNode, out _client))
            {
                if (_client != null)
                {
                    await _client.DestroyAsync();
                }
            }
            if (this._clientMap.ContainsKey(amqpNode))
            {
                this._clientMap.Remove(amqpNode);
            }
        }