Пример #1
0
        private async Task <Type> GetClientType(string key)
        {
            _gatewayProvider.MapClients.TryGetValue(key, out var value);
            if (value != null)
            {
                return(value);
            }

            var clientType = Type.GetType(await _routeProvider.GetCustomerServerRouter(key));

            _gatewayProvider.MapClients.TryAdd(key, clientType);

            return(clientType);
        }