CoreLoggerExtensions.SaveChangesCanceledAsync 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.
Journaux de l’événement SaveChangesFailed .
public static System.Threading.Tasks.Task SaveChangesCanceledAsync(this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Update> diagnostics, Microsoft.EntityFrameworkCore.DbContext context, System.Threading.CancellationToken cancellationToken = default);
static member SaveChangesCanceledAsync : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Update> * Microsoft.EntityFrameworkCore.DbContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function SaveChangesCanceledAsync (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Update), context As DbContext, Optional cancellationToken As CancellationToken = Nothing) As Task
Paramètres
- diagnostics
- IDiagnosticsLogger<DbLoggerCategory.Update>
Journal diagnostics à utiliser.
- context
- DbContext
Contexte utilisé.
- cancellationToken
- CancellationToken
CancellationToken à observer en attendant la fin de la tâche.
Retours
Task pour le résultat asynchrone.
Exceptions
Si le CancellationToken est annulé.