共用方式為


IDbTransactionInterceptor.TransactionCommittedAsync 方法

定義

在 EF 呼叫 之後立即呼叫 CommitAsync(CancellationToken)

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

參數

transaction
DbTransaction

異動。

eventData
TransactionEndEventData

連線和交易的相關內容資訊。

cancellationToken
CancellationToken

CancellationToken等候工作完成時要觀察的 。

傳回

代表非同步作業的 Task

例外狀況

適用於