示例#1
0
            public InvokeProxy()
            {
                _type = typeof(T);
                if (!HttpClients.ContainsKey(_type.Namespace))
                {
                    Console.WriteLine($"{_type} has not set the url.");
                    return;
                }

                var clients = HttpClients[_type.Namespace];
                var random  = new Random();

                _client = HttpClients[_type.Namespace][random.Next(0, clients.Count - 1)];
            }