共用方式為


SiloBuilderMemoryStreamExtensions.AddMemoryStreams 方法

定義

多載

AddMemoryStreams(ISiloBuilder, String, Action<ISiloMemoryStreamConfigurator>)

使用預設訊息序列化程式,將接收器設定為使用記憶體資料流程, (DefaultMemoryMessageBodySerializer) 。

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

將接收器設定為使用記憶體資料流程。

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

將接收器設定為使用記憶體資料流程。

AddMemoryStreams(ISiloBuilder, String, Action<ISiloMemoryStreamConfigurator>)

使用預設訊息序列化程式,將接收器設定為使用記憶體資料流程, (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>

組態委派。

傳回

定址接收器產生器。

適用於

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

來源:
SiloBuilderMemoryStreamExtensions.cs

將接收器設定為使用記憶體資料流程。

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>

組態委派。

傳回

定址接收器產生器。

適用於

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

來源:
SiloBuilderMemoryStreamExtensions.cs

將接收器設定為使用記憶體資料流程。

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

傳回

適用於