Bewerken

Delen via


SiloHostBuilderExtensions.Configure Method

Definition

Overloads

Configure<TOptions>(ISiloHostBuilder, IConfiguration)

Registers a configuration instance which TOptions will bind against.

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

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

Configure<TOptions>(ISiloHostBuilder, IConfiguration)

Source:
SiloHostBuilderExtensions.cs

Registers a configuration instance which TOptions will bind against.

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

Type Parameters

TOptions

The options type to be configured.

Parameters

builder
ISiloHostBuilder

The host builder.

configuration
IConfiguration

The configuration.

Returns

The silo builder.

Applies to

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

Source:
SiloHostBuilderExtensions.cs

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

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

Type Parameters

TOptions

The options type to be configured.

Parameters

builder
ISiloHostBuilder

The host builder.

configureOptions
Action<TOptions>

The action used to configure the options.

Returns

The silo builder.

Applies to