Udostępnij za pośrednictwem


INamedContextualOptions<TOptions,TContext> Interfejs

Definicja

Służy do pobierania nazwanych skonfigurowanych TOptions wystąpień.

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)

Parametry typu

TOptions

Typ żądanych opcji.

TContext

Typ definiujący kontekst dla tego żądania.

Implementuje

Metody

GetAsync(String, TContext, CancellationToken)

Pobiera nazwane skonfigurowane TOptions wystąpienie.

GetAsync(TContext, CancellationToken)

Pobiera skonfigurowane TOptions wystąpienie.

(Odziedziczone po IContextualOptions<TOptions,TContext>)

Dotyczy