Skip to content

LeaseBasedQueueBalancer Constructors

LeaseBasedQueueBalancer. This balancer supports queue balancing in cluster auto-scale scenarios, unexpected server failure scenarios, and tries to support ideal distribution as much as possible.

LeaseBasedQueueBalancer(string, LeaseBasedQueueBalancerOptions, ILeaseProvider, IServiceProvider, ILoggerFactory, TimeProvider)

View source
public LeaseBasedQueueBalancer(string name, LeaseBasedQueueBalancerOptions options, ILeaseProvider leaseProvider, IServiceProvider services, ILoggerFactory loggerFactory, TimeProvider timeProvider)
LeaseBasedQueueBalancer. This balancer supports queue balancing in cluster auto-scale scenarios, unexpected server failure scenarios, and tries to support ideal distribution as much as possible.

Parameters

namestring
The name.
optionsLeaseBasedQueueBalancerOptions
The options.
leaseProviderILeaseProvider
The lease provider.
servicesIServiceProvider
The services.
loggerFactoryILoggerFactory
The logger factory.
timeProviderTimeProvider