Partajați prin


INamedContextualOptions<TOptions,TContext> Interface

Definition

Provides functionality to retrieve named configured TOptions instances.

generic <typename TOptions, typename TContext>
 where TOptions : class where TContext : IOptionsContextpublic interface class INamedContextualOptions : Microsoft::Extensions::Options::Contextual::IContextualOptions<TOptions, TContext>
public interface INamedContextualOptions<TOptions,TContext> : Microsoft.Extensions.Options.Contextual.IContextualOptions<TOptions,TContext> where TOptions : class where TContext : IOptionsContext
type INamedContextualOptions<'Options, 'Context (requires 'Options : null and 'Context :> IOptionsContext)> = interface
    interface IContextualOptions<'Options, 'Context (requires 'Options : null and 'Context :> IOptionsContext)>
Public Interface INamedContextualOptions(Of TOptions, TContext)
Implements IContextualOptions(Of TOptions, TContext)

Type Parameters

TOptions

The type of options being requested.

TContext

A type defining the context for this request.

Implements

Methods

GetAsync(String, TContext, CancellationToken)

Gets the named configured TOptions instance.

GetAsync(TContext, CancellationToken)

Gets the configured TOptions instance.

(Inherited from IContextualOptions<TOptions,TContext>)

Applies to