SiloPersistentStreamConfiguratorExtensions.ConfigurePartitionBalancing 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ConfigurePartitionBalancing(ISiloPersistentStreamConfigurator, Func<IServiceProvider,String,IStreamQueueBalancer>)
配置分区均衡。
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>>)
配置分区均衡。
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>>
配置委托。