Compartir a través de


INamedContextualOptions<TOptions,TContext> Interfaz

Definición

Se usa para recuperar instancias configuradas con TOptions nombre.

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)

Parámetros de tipo

TOptions

Tipo de opciones que se solicitan.

TContext

Tipo que define el contexto de esta solicitud.

Implementaciones

Métodos

GetAsync(String, TContext, CancellationToken)

Obtiene la instancia configurada con nombre TOptions .

GetAsync(TContext, CancellationToken)

Obtiene la instancia configurada TOptions .

(Heredado de IContextualOptions<TOptions,TContext>)

Se aplica a