INamedContextualOptions<TOptions,TContext> インターフェイス

定義

構成済みの名前付き TOptions インスタンスを取得する機能を提供します。

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)

型パラメーター

TOptions

要求されるオプションの種類。

TContext

この要求のコンテキストを定義する型。

実装

メソッド

名前 説明
GetAsync(String, TContext, CancellationToken)

構成済みの名前付き TOptions インスタンスを取得します。

GetAsync(TContext, CancellationToken)

構成された TOptions インスタンスを取得します。

(継承元 IContextualOptions<TOptions,TContext>)

適用対象