示例#1
0
        private LoadBalancerManager(string managerId, LoadBalancerManagerConfig loadBalancerManagerConfig)
        {
            ParameterChecker.NotNullOrWhiteSpace(managerId, "managerId");
            ParameterChecker.NotNull(loadBalancerManagerConfig, "loadBalancerManagerConfig");

            ManagerId = managerId;
            LoadBalancerManagerConfig = loadBalancerManagerConfig;
        }
示例#2
0
 public static LoadBalancerManager GetManager(string factoryId, LoadBalancerManagerConfig loadBalancerManagerConfig)
 {
     return(_managerCache.GetOrAdd(factoryId, key => new LoadBalancerManager(key, loadBalancerManagerConfig)));
 }