Compartir a través de


DbTransactionInterceptor.CreatedSavepointAsync Método

Definición

Se llama inmediatamente después de llamar a EF.CommitAsync(CancellationToken)

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

Parámetros

transaction
DbTransaction

Transacción.

eventData
TransactionEventData

Información contextual sobre la conexión y la transacción.

cancellationToken
CancellationToken

Que CancellationToken se debe observar mientras se espera a que se complete la tarea.

Devoluciones

Tarea Task que representa la operación asincrónica.

Implementaciones

Se aplica a