Compartir a través de


IContextualOptions<TOptions,TContext>.GetAsync Método

Definición

Obtiene la instancia configurada 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)

Parámetros

context
TContext

Contexto que se usará para crear las opciones.

cancellationToken
CancellationToken

Token para supervisar solicitudes de cancelación.

Devoluciones

ValueTask<TOptions>

Instancia configurada de TOptions.

Se aplica a