Udostępnij za pośrednictwem


IScope<T>.WithScopeAsync(T, CancellationToken) Metoda

Definicja

Wprowadź zakres kodu kluczowany przez element.

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)

Parametry

item
T

Element.

token
CancellationToken

Token anulowania.

Zwraca

Zadanie, którego ukończenie generuje element IDisposable dla zakresu.

Dotyczy