SiloBuilderMemoryStreamExtensions.AddMemoryStreams 方法

定义

重载

AddMemoryStreams(ISiloBuilder, String, Action<ISiloMemoryStreamConfigurator>)

将 silo 配置为使用内存流,使用默认的消息序列化程序 (DefaultMemoryMessageBodySerializer) 。

AddMemoryStreams<TSerializer>(ISiloBuilder, String, Action<ISiloMemoryStreamConfigurator>)

配置 silo 以使用内存流。

AddMemoryStreams<TSerializer>(ISiloHostBuilder, String, Action<ISiloMemoryStreamConfigurator>)

配置 silo 以使用内存流。

AddMemoryStreams(ISiloBuilder, String, Action<ISiloMemoryStreamConfigurator>)

将 silo 配置为使用内存流,使用默认的消息序列化程序 (DefaultMemoryMessageBodySerializer) 。

public static Orleans.Hosting.ISiloBuilder AddMemoryStreams (this Orleans.Hosting.ISiloBuilder builder, string name, Action<Orleans.Hosting.ISiloMemoryStreamConfigurator> configure = default);
static member AddMemoryStreams : Orleans.Hosting.ISiloBuilder * string * Action<Orleans.Hosting.ISiloMemoryStreamConfigurator> -> Orleans.Hosting.ISiloBuilder
<Extension()>
Public Function AddMemoryStreams (builder As ISiloBuilder, name As String, Optional configure As Action(Of ISiloMemoryStreamConfigurator) = Nothing) As ISiloBuilder

参数

builder
ISiloBuilder

生成器。

name
String

流提供程序名称。

configure
Action<ISiloMemoryStreamConfigurator>

配置委托。

返回

silo 生成器。

适用于

AddMemoryStreams<TSerializer>(ISiloBuilder, String, Action<ISiloMemoryStreamConfigurator>)

Source:
SiloBuilderMemoryStreamExtensions.cs

配置 silo 以使用内存流。

public static Orleans.Hosting.ISiloBuilder AddMemoryStreams<TSerializer> (this Orleans.Hosting.ISiloBuilder builder, string name, Action<Orleans.Hosting.ISiloMemoryStreamConfigurator> configure = default) where TSerializer : class, Orleans.Providers.IMemoryMessageBodySerializer;
static member AddMemoryStreams : Orleans.Hosting.ISiloBuilder * string * Action<Orleans.Hosting.ISiloMemoryStreamConfigurator> -> Orleans.Hosting.ISiloBuilder (requires 'Serializer : null and 'Serializer :> Orleans.Providers.IMemoryMessageBodySerializer)
<Extension()>
Public Function AddMemoryStreams(Of TSerializer As {Class, IMemoryMessageBodySerializer}) (builder As ISiloBuilder, name As String, Optional configure As Action(Of ISiloMemoryStreamConfigurator) = Nothing) As ISiloBuilder

类型参数

TSerializer

必须实现 IMemoryMessageBodySerializer的消息序列化程序类型。

参数

builder
ISiloBuilder

生成器。

name
String

流提供程序名称。

configure
Action<ISiloMemoryStreamConfigurator>

配置委托。

返回

silo 生成器。

适用于

AddMemoryStreams<TSerializer>(ISiloHostBuilder, String, Action<ISiloMemoryStreamConfigurator>)

Source:
SiloBuilderMemoryStreamExtensions.cs

配置 silo 以使用内存流。

public static Orleans.Hosting.ISiloHostBuilder AddMemoryStreams<TSerializer> (this Orleans.Hosting.ISiloHostBuilder builder, string name, Action<Orleans.Hosting.ISiloMemoryStreamConfigurator> configure = default) where TSerializer : class, Orleans.Providers.IMemoryMessageBodySerializer;
static member AddMemoryStreams : Orleans.Hosting.ISiloHostBuilder * string * Action<Orleans.Hosting.ISiloMemoryStreamConfigurator> -> Orleans.Hosting.ISiloHostBuilder (requires 'Serializer : null and 'Serializer :> Orleans.Providers.IMemoryMessageBodySerializer)
<Extension()>
Public Function AddMemoryStreams(Of TSerializer As {Class, IMemoryMessageBodySerializer}) (builder As ISiloHostBuilder, name As String, Optional configure As Action(Of ISiloMemoryStreamConfigurator) = Nothing) As ISiloHostBuilder

类型参数

TSerializer

参数

name
String

返回

适用于