Lenguaje

IScope<T>.WithScopeAsync(T, CancellationToken) Método

Definición

Introduce un alcance de código codificado por elemento.

public System.Threading.Tasks.Task<IDisposable> WithScopeAsync(T item, System.Threading.CancellationToken token);
abstract member WithScopeAsync : 'T * System.Threading.CancellationToken -> System.Threading.Tasks.Task<IDisposable>
Public Function WithScopeAsync (item As T, token As CancellationToken) As Task(Of IDisposable)

Parámetros

item
T

Elemento.

token
CancellationToken

Token de cancelación.

Devoluciones

Una tarea cuya finalización produce un IDisposable para el ámbito.

Se aplica a