Bewerken

Delen via


SiloBuilderMemoryStreamExtensions.AddMemoryStreams Method

Definition

Overloads

AddMemoryStreams(ISiloBuilder, String, Action<ISiloMemoryStreamConfigurator>)

Configure silo to use memory streams, using the default message serializer (DefaultMemoryMessageBodySerializer).

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

Configure silo to use memory streams.

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

Configure silo to use memory streams.

AddMemoryStreams(ISiloBuilder, String, Action<ISiloMemoryStreamConfigurator>)

Configure silo to use memory streams, using the default message serializer (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

Parameters

builder
ISiloBuilder

The builder.

name
String

The stream provider name.

configure
Action<ISiloMemoryStreamConfigurator>

The configuration delegate.

Returns

The silo builder.

Applies to

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

Source:
SiloBuilderMemoryStreamExtensions.cs

Configure silo to use memory streams.

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

Type Parameters

TSerializer

The message serializer type, which must implement IMemoryMessageBodySerializer.

Parameters

builder
ISiloBuilder

The builder.

name
String

The stream provider name.

configure
Action<ISiloMemoryStreamConfigurator>

The configuration delegate.

Returns

The silo builder.

Applies to

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

Source:
SiloBuilderMemoryStreamExtensions.cs

Configure silo to use memory streams.

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

Type Parameters

TSerializer

Parameters

name
String

Returns

Applies to