Condividi tramite


IContextualOptions<TOptions,TContext>.GetAsync Metodo

Definizione

Ottiene l'istanza configurata TOptions .

public:
 System::Threading::Tasks::ValueTask<TOptions> GetAsync(TContext& ^ context, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.ValueTask<TOptions> GetAsync (in TContext context, System.Threading.CancellationToken cancellationToken);
abstract member GetAsync : 'Context * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<'Options (requires 'Options : null)>
Public Function GetAsync (context As TContext, cancellationToken As CancellationToken) As ValueTask(Of TOptions)

Parametri

context
TContext

Contesto che verrà usato per creare le opzioni.

cancellationToken
CancellationToken

Token da monitorare per le richieste di annullamento.

Restituisce

ValueTask<TOptions>

Istanza configurata di TOptions.

Si applica a