Example #1
0
 /// <summary>
 /// Creates new instance of <see cref="AdaptiveLoadBalancingGroup"/> from provided configuration
 /// </summary>
 public AdaptiveLoadBalancingGroup(Config config)
     : this(MetricsSelectorBuilder.BuildFromConfig(config), paths : config.GetStringList("routees.paths", new string[] { }))
 {
 }
Example #2
0
 /// <summary>
 /// Creates instance of <see cref="AdaptiveLoadBalancingPool"/> using configuration
 /// </summary>
 public AdaptiveLoadBalancingPool(Config config)
     : this(MetricsSelectorBuilder.BuildFromConfig(config),
            ClusterRouterSettingsBase.GetMaxTotalNrOfInstances(config),
            usePoolDispatcher : config.HasPath("pool-dispatcher"))
 {
 }