public BackendManager(IDestinationManagerFactory destinationManagerFactory, IProxyHttpClientFactoryFactory httpClientFactoryFactory)
        {
            Contracts.CheckValue(destinationManagerFactory, nameof(destinationManagerFactory));
            Contracts.CheckValue(httpClientFactoryFactory, nameof(httpClientFactoryFactory));

            _destinationManagerFactory = destinationManagerFactory;
            _httpClientFactoryFactory  = httpClientFactoryFactory;
        }
示例#2
0
 public ClusterManager(IDestinationManagerFactory destinationManagerFactory)
 {
     _destinationManagerFactory = destinationManagerFactory ?? throw new ArgumentNullException(nameof(destinationManagerFactory));
 }
 public ClusterManager(IDestinationManagerFactory destinationManagerFactory, IProxyHttpClientFactoryFactory httpClientFactoryFactory)
 {
     _destinationManagerFactory = destinationManagerFactory ?? throw new ArgumentNullException(nameof(destinationManagerFactory));
     _httpClientFactoryFactory  = httpClientFactoryFactory ?? throw new ArgumentNullException(nameof(httpClientFactoryFactory));
 }
示例#4
0
 public ClusterManager(IDestinationManagerFactory destinationManagerFactory, IEnumerable <IClusterChangeListener> changeListeners)
 {
     _destinationManagerFactory = destinationManagerFactory ?? throw new ArgumentNullException(nameof(destinationManagerFactory));
     _changeListeners           = changeListeners?.ToArray() ?? Array.Empty <IClusterChangeListener>();
 }