Compartir a través de


CoreLoggerExtensions.SaveChangesFailedAsync Método

Definición

Registros del SaveChangesFailed evento.

public static System.Threading.Tasks.Task SaveChangesFailedAsync (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Update> diagnostics, Microsoft.EntityFrameworkCore.DbContext context, Exception exception, System.Threading.CancellationToken cancellationToken = default);
static member SaveChangesFailedAsync : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Update> * Microsoft.EntityFrameworkCore.DbContext * Exception * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function SaveChangesFailedAsync (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Update), context As DbContext, exception As Exception, 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.

exception
Exception

Excepción que provocó este evento.

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