NamedServiceConfiguratorExtensions.Configure<TOptions> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.