IScope<T>.WithScopeAsync(T, CancellationToken) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Entrez un champ de code codé par 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)
Paramètres
- item
- T
Élément.
- token
- CancellationToken
Jeton d’annulation.
Retours
Une tâche dont l’achèvement produit un IDisposable pour le périmètre.