INamedContextualOptions<TOptions,TContext> Schnittstelle
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Wird verwendet, um benannte konfigurierte TOptions Instanzen abzurufen.
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)
Typparameter
- TOptions
Der Typ der angeforderten Optionen.
- TContext
Ein Typ, der den Kontext für diese Anforderung definiert.
- Implementiert
Methoden
| GetAsync(String, TContext, CancellationToken) |
Ruft die benannte konfigurierte |
| GetAsync(TContext, CancellationToken) |
Ruft die konfigurierte |