Compartilhar via


IDbTransactionInterceptor.ReleasedSavepointAsync Método

Definição

Chamado imediatamente após o EF liberar um ponto de salvamento de transação.

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

Parâmetros

transaction
DbTransaction

A transação.

eventData
TransactionEventData

Informações contextuais sobre conexão e transação.

cancellationToken
CancellationToken

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

Retornos

Um Task representando a operação assíncrona.

Exceções

Se o padrão CancellationToken for cancelado.

Aplica-se a