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