SiloBuilderStreamingExtensions.AddPersistentStreams 方法

定义

将 silo 配置为使用永久性流。

public static Orleans.Hosting.ISiloBuilder AddPersistentStreams (this Orleans.Hosting.ISiloBuilder builder, string name, Func<IServiceProvider,string,Orleans.Streams.IQueueAdapterFactory> adapterFactory, Action<Orleans.Hosting.ISiloPersistentStreamConfigurator> configureStream);
static member AddPersistentStreams : Orleans.Hosting.ISiloBuilder * string * Func<IServiceProvider, string, Orleans.Streams.IQueueAdapterFactory> * Action<Orleans.Hosting.ISiloPersistentStreamConfigurator> -> Orleans.Hosting.ISiloBuilder
<Extension()>
Public Function AddPersistentStreams (builder As ISiloBuilder, name As String, adapterFactory As Func(Of IServiceProvider, String, IQueueAdapterFactory), configureStream As Action(Of ISiloPersistentStreamConfigurator)) As ISiloBuilder

参数

builder
ISiloBuilder

生成器。

name
String

提供程序名称。

adapterFactory
Func<IServiceProvider,String,IQueueAdapterFactory>

提供程序适配器工厂。

configureStream
Action<ISiloPersistentStreamConfigurator>

流提供程序配置委托。

返回

silo 生成器。

适用于