Condividi tramite


IDbTransactionInterceptor.TransactionFailedAsync Metodo

Definizione

Chiamato quando l'uso di un oggetto DbTransaction non è riuscito con un'eccezione.

public System.Threading.Tasks.Task TransactionFailedAsync (System.Data.Common.DbTransaction transaction, Microsoft.EntityFrameworkCore.Diagnostics.TransactionErrorEventData eventData, System.Threading.CancellationToken cancellationToken = default);
public virtual System.Threading.Tasks.Task TransactionFailedAsync (System.Data.Common.DbTransaction transaction, Microsoft.EntityFrameworkCore.Diagnostics.TransactionErrorEventData eventData, System.Threading.CancellationToken cancellationToken = default);
abstract member TransactionFailedAsync : System.Data.Common.DbTransaction * Microsoft.EntityFrameworkCore.Diagnostics.TransactionErrorEventData * System.Threading.CancellationToken -> System.Threading.Tasks.Task
abstract member TransactionFailedAsync : System.Data.Common.DbTransaction * Microsoft.EntityFrameworkCore.Diagnostics.TransactionErrorEventData * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.TransactionFailedAsync : System.Data.Common.DbTransaction * Microsoft.EntityFrameworkCore.Diagnostics.TransactionErrorEventData * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function TransactionFailedAsync (transaction As DbTransaction, eventData As TransactionErrorEventData, Optional cancellationToken As CancellationToken = Nothing) As Task
Public Overridable Function TransactionFailedAsync (transaction As DbTransaction, eventData As TransactionErrorEventData, Optional cancellationToken As CancellationToken = Nothing) As Task

Parametri

transaction
DbTransaction

Transazione.

eventData
TransactionErrorEventData

Informazioni contestuali sulla connessione e sulla transazione.

cancellationToken
CancellationToken

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

Restituisce

Task che rappresenta l'operazione asincrona.

Eccezioni

Si applica a