LoadBalancer Property
LoadBalancer
Gets the SingletonServiceFactory<TService> for the ILoadBalancer.
Declaration
public SingletonServiceFactory<ILoadBalancer> LoadBalancer { get; }
Property Value
| SingletonServiceFactory<ILoadBalancer> |
Remarks
When set in the configuration file, it is defined as an injected type, for instance:
"loadBalancer":
{
"typeName": "My.LoadBalancer",
"args":
{
"foo": 42
}
}
where typeName is the name of the type, and args is an optional dictionary
of arguments for the type constructor.
In addition to custom type names, typeName can be any of the
predefined Random, RoundRobin or Static values.
The default load balancer is the RoundRobinLoadBalancer.