public PartitionLoadBalancerCore( PartitionController partitionController, DocumentServiceLeaseContainer leaseContainer, LoadBalancingStrategy partitionLoadBalancingStrategy, TimeSpan leaseAcquireInterval) { if (partitionController == null) { throw new ArgumentNullException(nameof(partitionController)); } if (leaseContainer == null) { throw new ArgumentNullException(nameof(leaseContainer)); } if (partitionLoadBalancingStrategy == null) { throw new ArgumentNullException(nameof(partitionLoadBalancingStrategy)); } this.partitionController = partitionController; this.leaseContainer = leaseContainer; this.partitionLoadBalancingStrategy = partitionLoadBalancingStrategy; this.leaseAcquireInterval = leaseAcquireInterval; this.cancellationTokenSource = new CancellationTokenSource(); }
public PartitionManagerCore(Bootstrapper bootstrapper, PartitionController partitionController, PartitionLoadBalancer partitionLoadBalancer) { this.bootstrapper = bootstrapper; this.partitionController = partitionController; this.partitionLoadBalancer = partitionLoadBalancer; }