Share via


CommitFailureHandler.PruneTransactionHistoryAsync Method

Definition

Overloads

PruneTransactionHistoryAsync()

Asynchronously removes the transactions marked for deletion.

PruneTransactionHistoryAsync(CancellationToken)

Asynchronously removes the transactions marked for deletion.

PruneTransactionHistoryAsync(Boolean, Boolean, CancellationToken)

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

PruneTransactionHistoryAsync()

Asynchronously removes the transactions marked for deletion.

public System.Threading.Tasks.Task PruneTransactionHistoryAsync ();
member this.PruneTransactionHistoryAsync : unit -> System.Threading.Tasks.Task
Public Function PruneTransactionHistoryAsync () As Task

Returns

A task that represents the asynchronous operation.

Applies to

PruneTransactionHistoryAsync(CancellationToken)

Asynchronously removes the transactions marked for deletion.

public System.Threading.Tasks.Task PruneTransactionHistoryAsync (System.Threading.CancellationToken cancellationToken);
member this.PruneTransactionHistoryAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

cancellationToken
CancellationToken

The cancellation token.

Returns

A task that represents the asynchronous operation.

Applies to

PruneTransactionHistoryAsync(Boolean, Boolean, CancellationToken)

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

[System.Diagnostics.DebuggerStepThrough]
protected virtual System.Threading.Tasks.Task PruneTransactionHistoryAsync (bool force, bool useExecutionStrategy, System.Threading.CancellationToken cancellationToken);
abstract member PruneTransactionHistoryAsync : bool * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.PruneTransactionHistoryAsync : bool * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

force
Boolean

if set to true will remove all the old transactions even if their number does not exceed PruningLimit.

useExecutionStrategy
Boolean

if set to true the operation will be executed using the associated execution strategy

cancellationToken
CancellationToken

The cancellation token.

Returns

A task that represents the asynchronous operation.

Attributes

Applies to