src/Orleans.Streaming/QueueBalancer/PersistentStreamConfiguratorExtension.cs
/// <summary>
/// Configures the stream provider to use the lease based queue balancer.
/// </summary>
/// <param name="configurator">The configuration builder.</param>
/// <param name="configureOptions">The configure options.</param>
Configures the stream provider to use the lease based queue balancer.
Configures the stream provider to use the lease based queue balancer .
public static void UseLeaseBasedQueueBalancer(this ISiloPersistentStreamConfigurator configurator, 
            Action<OptionsBuilder<LeaseBasedQueueBalancerOptions>> configureOptions = null)
        {
            configurator.ConfigurePartitionBalancing((s, n) => LeaseBasedQueueBalancer.Create(s, n),
                configureOptions);
        }
public static void UseLeaseBasedQueueBalancer ( this ISiloPersistentStreamConfigurator configurator , Action < OptionsBuilder < LeaseBasedQueueBalancerOptions > > configureOptions = null ) { configurator . ConfigurePartitionBalancing ( ( s , n ) => LeaseBasedQueueBalancer . Create ( s , n ) , configureOptions ) ; }
Configures the stream provider to use the lease based queue balancer.
Configures the stream provider to use the lease based queue balancer .
ISiloPersistentStreamConfigurator
this
configureOptions
Action<OptionsBuilder<LeaseBasedQueueBalancerOptions>>
The configure options.
The configure options .
configurator
The configuration builder.
The configuration builder .