private LoadBalancerManager(string managerId, LoadBalancerManagerConfig loadBalancerManagerConfig) { ParameterChecker.NotNullOrWhiteSpace(managerId, "managerId"); ParameterChecker.NotNull(loadBalancerManagerConfig, "loadBalancerManagerConfig"); ManagerId = managerId; LoadBalancerManagerConfig = loadBalancerManagerConfig; }
public static LoadBalancerManager GetManager(string factoryId, LoadBalancerManagerConfig loadBalancerManagerConfig) { return(_managerCache.GetOrAdd(factoryId, key => new LoadBalancerManager(key, loadBalancerManagerConfig))); }