Edytuj

Udostępnij za pośrednictwem


NamedServiceConfiguratorExtensions.Configure<TOptions> Method

Definition

Configures options for a named service.

public static void Configure<TOptions> (this Orleans.Hosting.INamedServiceConfigurator configurator, Action<Microsoft.Extensions.Options.OptionsBuilder<TOptions>> configureOptions) where TOptions : class, new();
static member Configure : Orleans.Hosting.INamedServiceConfigurator * Action<Microsoft.Extensions.Options.OptionsBuilder<'Options>> -> unit (requires 'Options : null and 'Options : (new : unit -> 'Options))
<Extension()>
Public Sub Configure(Of TOptions As {Class, New}) (configurator As INamedServiceConfigurator, configureOptions As Action(Of OptionsBuilder(Of TOptions)))

Type Parameters

TOptions

The underlying options type.

Parameters

configurator
INamedServiceConfigurator

The named service configurator.

configureOptions
Action<OptionsBuilder<TOptions>>

The options configuration delegate.

Applies to