public async Task CloseRpcServerAsync(string amqpNode) { IRpcServer _server = null; if (this._serverMap.TryGetValue(amqpNode, out _server)) { if (_server != null) { await _server.DestroyAsync(); } } if (this._serverMap.ContainsKey(amqpNode)) { this._serverMap.Remove(amqpNode); } }