Пример #1
0
        public BackendManager(IEndpointManagerFactory endpointManagerFactory, IProxyHttpClientFactoryFactory httpClientFactoryFactory)
        {
            Contracts.CheckValue(endpointManagerFactory, nameof(endpointManagerFactory));
            Contracts.CheckValue(httpClientFactoryFactory, nameof(httpClientFactoryFactory));

            _endpointManagerFactory   = endpointManagerFactory;
            _httpClientFactoryFactory = httpClientFactoryFactory;
        }
Пример #2
0
 public ClusterManager(IDestinationManagerFactory destinationManagerFactory, IProxyHttpClientFactoryFactory httpClientFactoryFactory)
 {
     _destinationManagerFactory = destinationManagerFactory ?? throw new ArgumentNullException(nameof(destinationManagerFactory));
     _httpClientFactoryFactory  = httpClientFactoryFactory ?? throw new ArgumentNullException(nameof(httpClientFactoryFactory));
 }