Поделиться через


IContextualOptions<TOptions,TContext> Интерфейс

Определение

Используется для получения настроенных экземпляров TOptions.

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

Параметры типа

TOptions

Тип запрашиваемых параметров.

TContext

Тип, определяющий контекст для этого запроса.

Производный

Методы

GetAsync(TContext, CancellationToken)

Возвращает настроенный TOptions экземпляр.

Применяется к