Condividi tramite


CoreLoggerExtensions.SaveChangesCanceledAsync Metodo

Definizione

Registra l'evento 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

Parametri

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Update>

Logger di diagnostica da usare.

context
DbContext

Contesto in uso.

cancellationToken
CancellationToken

Oggetto CancellationToken da osservare durante l'attesa del completamento dell'attività.

Restituisce

Oggetto Task per il risultato asincrono.

Eccezioni

Si applica a