IDbTransactionInterceptor.TransactionCommittedAsync Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Chiamato immediatamente dopo le chiamate CommitAsync(CancellationToken)EF .
public System.Threading.Tasks.Task TransactionCommittedAsync (System.Data.Common.DbTransaction transaction, Microsoft.EntityFrameworkCore.Diagnostics.TransactionEndEventData eventData, System.Threading.CancellationToken cancellationToken = default);
public virtual System.Threading.Tasks.Task TransactionCommittedAsync (System.Data.Common.DbTransaction transaction, Microsoft.EntityFrameworkCore.Diagnostics.TransactionEndEventData eventData, System.Threading.CancellationToken cancellationToken = default);
abstract member TransactionCommittedAsync : System.Data.Common.DbTransaction * Microsoft.EntityFrameworkCore.Diagnostics.TransactionEndEventData * System.Threading.CancellationToken -> System.Threading.Tasks.Task
abstract member TransactionCommittedAsync : System.Data.Common.DbTransaction * Microsoft.EntityFrameworkCore.Diagnostics.TransactionEndEventData * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.TransactionCommittedAsync : System.Data.Common.DbTransaction * Microsoft.EntityFrameworkCore.Diagnostics.TransactionEndEventData * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function TransactionCommittedAsync (transaction As DbTransaction, eventData As TransactionEndEventData, Optional cancellationToken As CancellationToken = Nothing) As Task
Public Overridable Function TransactionCommittedAsync (transaction As DbTransaction, eventData As TransactionEndEventData, Optional cancellationToken As CancellationToken = Nothing) As Task
Parametri
- transaction
- DbTransaction
Transazione.
- eventData
- TransactionEndEventData
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
Se CancellationToken viene annullato.