Edytuj

Udostępnij za pośrednictwem


SiloBuilderExtensions.Configure Method

Definition

Overloads

Configure<TOptions>(ISiloBuilder, IConfiguration)

Registers a configuration instance which TOptions will bind against.

Configure<TOptions>(ISiloBuilder, Action<TOptions>)

Registers an action used to configure a particular type of options.

Configure<TOptions>(ISiloBuilder, IConfiguration)

Source:
SiloBuilderExtensions.cs

Registers a configuration instance which TOptions will bind against.

public static Orleans.Hosting.ISiloBuilder Configure<TOptions> (this Orleans.Hosting.ISiloBuilder builder, Microsoft.Extensions.Configuration.IConfiguration configuration) where TOptions : class;
static member Configure : Orleans.Hosting.ISiloBuilder * Microsoft.Extensions.Configuration.IConfiguration -> Orleans.Hosting.ISiloBuilder (requires 'Options : null)
<Extension()>
Public Function Configure(Of TOptions As Class) (builder As ISiloBuilder, configuration As IConfiguration) As ISiloBuilder

Type Parameters

TOptions

The options type to be configured.

Parameters

builder
ISiloBuilder

The silo builder.

configuration
IConfiguration

The configuration.

Returns

The silo builder.

Applies to

Configure<TOptions>(ISiloBuilder, Action<TOptions>)

Source:
SiloBuilderExtensions.cs

Registers an action used to configure a particular type of options.

public static Orleans.Hosting.ISiloBuilder Configure<TOptions> (this Orleans.Hosting.ISiloBuilder builder, Action<TOptions> configureOptions) where TOptions : class;
static member Configure : Orleans.Hosting.ISiloBuilder * Action<'Options (requires 'Options : null)> -> Orleans.Hosting.ISiloBuilder (requires 'Options : null)
<Extension()>
Public Function Configure(Of TOptions As Class) (builder As ISiloBuilder, configureOptions As Action(Of TOptions)) As ISiloBuilder

Type Parameters

TOptions

The options type to be configured.

Parameters

builder
ISiloBuilder

The silo builder.

configureOptions
Action<TOptions>

The action used to configure the options.

Returns

The silo builder.

Applies to