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

Definitie

Voer een bereik in van de code die is gesleuteld per item.

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)

Parameters

item
T

Het item.

token
CancellationToken

Het annuleringstoken.

Retouren

Een taak waarvan de voltooiing een IDisposable voor het bereik produceert.

Van toepassing op