Compartir a través de


CoreLoggerExtensions.SaveChangesCanceledAsync Método

Definición

Registros del SaveChangesFailed evento.

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

Parámetros

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Update>

Registrador de diagnóstico que se va a usar.

context
DbContext

Contexto en uso.

cancellationToken
CancellationToken

que CancellationToken se va a observar mientras espera a que se complete la tarea.

Devoluciones

para Task el resultado asincrónico.

Excepciones

Se aplica a