CommitFailureHandler.PruneTransactionHistoryAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Entity Framework