SiloPersistentStreamConfiguratorExtensions.ConfigurePartitionBalancing Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ConfigurePartitionBalancing(ISiloPersistentStreamConfigurator, Func<IServiceProvider,String,IStreamQueueBalancer>)
Configures partition balancing.
public static void ConfigurePartitionBalancing (this Orleans.Hosting.ISiloPersistentStreamConfigurator configurator, Func<IServiceProvider,string,Orleans.Streams.IStreamQueueBalancer> factory);
static member ConfigurePartitionBalancing : Orleans.Hosting.ISiloPersistentStreamConfigurator * Func<IServiceProvider, string, Orleans.Streams.IStreamQueueBalancer> -> unit
<Extension()>
Public Sub ConfigurePartitionBalancing (configurator As ISiloPersistentStreamConfigurator, factory As Func(Of IServiceProvider, String, IStreamQueueBalancer))
Parameters
- configurator
- ISiloPersistentStreamConfigurator
The configuration builder.
- factory
- Func<IServiceProvider,String,IStreamQueueBalancer>
The partition balancer factory.
Applies to
ConfigurePartitionBalancing<TOptions>(ISiloPersistentStreamConfigurator, Func<IServiceProvider,String,IStreamQueueBalancer>, Action<OptionsBuilder<TOptions>>)
Configures partition balancing.
public static void ConfigurePartitionBalancing<TOptions> (this Orleans.Hosting.ISiloPersistentStreamConfigurator configurator, Func<IServiceProvider,string,Orleans.Streams.IStreamQueueBalancer> factory, Action<Microsoft.Extensions.Options.OptionsBuilder<TOptions>> configureOptions) where TOptions : class, new();
static member ConfigurePartitionBalancing : Orleans.Hosting.ISiloPersistentStreamConfigurator * Func<IServiceProvider, string, Orleans.Streams.IStreamQueueBalancer> * Action<Microsoft.Extensions.Options.OptionsBuilder<'Options>> -> unit (requires 'Options : null and 'Options : (new : unit -> 'Options))
<Extension()>
Public Sub ConfigurePartitionBalancing(Of TOptions As {Class, New}) (configurator As ISiloPersistentStreamConfigurator, factory As Func(Of IServiceProvider, String, IStreamQueueBalancer), configureOptions As Action(Of OptionsBuilder(Of TOptions)))
Type Parameters
- TOptions
The partition balancer options.
Parameters
- configurator
- ISiloPersistentStreamConfigurator
The configuration builder.
- factory
- Func<IServiceProvider,String,IStreamQueueBalancer>
The partition balancer factory.
- configureOptions
- Action<OptionsBuilder<TOptions>>
The configuration delegate.