public BackendManager(IDestinationManagerFactory destinationManagerFactory, IProxyHttpClientFactoryFactory httpClientFactoryFactory) { Contracts.CheckValue(destinationManagerFactory, nameof(destinationManagerFactory)); Contracts.CheckValue(httpClientFactoryFactory, nameof(httpClientFactoryFactory)); _destinationManagerFactory = destinationManagerFactory; _httpClientFactoryFactory = httpClientFactoryFactory; }
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)); }
public ClusterManager(IDestinationManagerFactory destinationManagerFactory, IEnumerable <IClusterChangeListener> changeListeners) { _destinationManagerFactory = destinationManagerFactory ?? throw new ArgumentNullException(nameof(destinationManagerFactory)); _changeListeners = changeListeners?.ToArray() ?? Array.Empty <IClusterChangeListener>(); }