CommitFailureHandler.PruneTransactionHistoryAsync Method

 

Asynchronously removes the transactions marked for deletion.

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

NameDescription
System_CAPS_pubmethodPruneTransactionHistoryAsync()

Asynchronously removes the transactions marked for deletion.

System_CAPS_protmethodPruneTransactionHistoryAsync(Boolean, Boolean, CancellationToken)

Removes the transactions marked for deletion if their number exceeds PruningLimit.

System_CAPS_pubmethodPruneTransactionHistoryAsync(CancellationToken)

Asynchronously removes the transactions marked for deletion.


CommitFailureHandler.PruneTransactionHistoryAsync Method ()

Asynchronously removes the transactions marked for deletion.

public Task PruneTransactionHistoryAsync()

Return Value

Type: System.Threading.Tasks.Task

A task that represents the asynchronous operation.


CommitFailureHandler.PruneTransactionHistoryAsync Method (Boolean, Boolean, CancellationToken)

Removes the transactions marked for deletion if their number exceeds PruningLimit.

[DebuggerStepThroughAttribute]
protected virtual Task PruneTransactionHistoryAsync(
	bool force,
	bool useExecutionStrategy,
	CancellationToken cancellationToken
)

Parameters

force
Type: System.Boolean

true to remove all the old transactions even if their number does not exceed PruningLimit; otherwise, false.

useExecutionStrategy
Type: System.Boolean

true to execute the operation using the associated execution strategy; otherwise, false.

cancellationToken
Type: System.Threading.CancellationToken

The cancellation token.

Return Value

Type: System.Threading.Tasks.Task

A task that represents the asynchronous operation.


CommitFailureHandler.PruneTransactionHistoryAsync Method (CancellationToken)

Asynchronously removes the transactions marked for deletion.

public Task PruneTransactionHistoryAsync(
	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.