CommitFailureHandler.ClearTransactionHistoryAsync Method

 

Asynchronously removes all the transaction history.

Namespace:   System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

NameDescription
System_CAPS_pubmethodClearTransactionHistoryAsync()

Asynchronously removes all the transaction history.

System_CAPS_pubmethodClearTransactionHistoryAsync(CancellationToken)

Asynchronously removes all the transaction history.


CommitFailureHandler.ClearTransactionHistoryAsync Method ()

Asynchronously removes all the transaction history.

public Task ClearTransactionHistoryAsync()

Return Value

Type: System.Threading.Tasks.Task

A task that represents the asynchronous operation.

This method should only be invoked when there are no active transactions to remove any leftover history that was not deleted due to catastrophic failures


CommitFailureHandler.ClearTransactionHistoryAsync Method (CancellationToken)

Asynchronously removes all the transaction history.

[DebuggerStepThroughAttribute]
public virtual Task ClearTransactionHistoryAsync(
	CancellationToken cancellationToken
)

Parameters

cancellationToken
Type: System.Threading.CancellationToken

The cancellation token.

Return Value

Type: System.Threading.Tasks.Task

A task that represents the asynchronous operation.

This method should only be invoked when there are no active transactions to remove any leftover history that was not deleted due to catastrophic failures