예제 #1
0
 public LoadBalancerManagerTest(
     ILoadBalancerManager loadBalancerManager,
     IRoundRobinAlgorithm roundRobinAlgorithm,
     IRandomInvokationAlgorithm randomInvokationAlgorithm)
 {
     _loadBalancerManager       = loadBalancerManager;
     _roundRobinAlgorithm       = roundRobinAlgorithm;
     _randomInvokationAlgorithm = randomInvokationAlgorithm;
 }
예제 #2
0
 public RoundRobinRule()
 {
     roundRobinAlgorithm = new DefaultRoundRobinAlgorithm <ServerGroup>();
     serverContexts      = new ConcurrentDictionary <string, RoundRobinContext>();
 }
예제 #3
0
 public RoundRobinContext(ServerGroup serverGroup)
 {
     ServerGroup         = serverGroup;
     roundRobinAlgorithm = new DefaultRoundRobinAlgorithm <Server>();
 }