SiloPersistentStreamConfiguratorExtensions.ConfigurePartitionBalancing 方法

定义

重载

ConfigurePartitionBalancing(ISiloPersistentStreamConfigurator, Func<IServiceProvider,String,IStreamQueueBalancer>)

配置分区均衡。

ConfigurePartitionBalancing<TOptions>(ISiloPersistentStreamConfigurator, Func<IServiceProvider,String,IStreamQueueBalancer>, Action<OptionsBuilder<TOptions>>)

配置分区均衡。

ConfigurePartitionBalancing(ISiloPersistentStreamConfigurator, Func<IServiceProvider,String,IStreamQueueBalancer>)

Source:
ISiloPersistentStreamConfigurator.cs

配置分区均衡。

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))

参数

configurator
ISiloPersistentStreamConfigurator

配置生成器。

factory
Func<IServiceProvider,String,IStreamQueueBalancer>

分区均衡器工厂。

适用于

ConfigurePartitionBalancing<TOptions>(ISiloPersistentStreamConfigurator, Func<IServiceProvider,String,IStreamQueueBalancer>, Action<OptionsBuilder<TOptions>>)

Source:
ISiloPersistentStreamConfigurator.cs

配置分区均衡。

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)))

类型参数

TOptions

分区均衡器选项。

参数

configurator
ISiloPersistentStreamConfigurator

配置生成器。

factory
Func<IServiceProvider,String,IStreamQueueBalancer>

分区均衡器工厂。

configureOptions
Action<OptionsBuilder<TOptions>>

配置委托。

适用于