Partilhar via


CoreLoggerExtensions.SaveChangesFailedAsync Método

Definição

Logs do 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>

O agente diagnóstico a ser usado.

context
DbContext

O contexto em uso.

exception
Exception

A exceção que causou esse evento.

cancellationToken
CancellationToken

Um CancellationToken a ser observado enquanto aguarda a conclusão da tarefa.

Retornos

Um Task para o resultado assíncrono.

Exceções

Se o padrão CancellationToken for cancelado.

Aplica-se a