CommitFailureHandler.PruneTransactionHistoryAsync Method
Asynchronously removes the transactions marked for deletion.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | PruneTransactionHistoryAsync() | Asynchronously removes the transactions marked for deletion. |
![]() | PruneTransactionHistoryAsync(Boolean, Boolean, CancellationToken) | Removes the transactions marked for deletion if their number exceeds PruningLimit. |
![]() | PruneTransactionHistoryAsync(CancellationToken) | Asynchronously removes the transactions marked for deletion. |
CommitFailureHandler.PruneTransactionHistoryAsync Method ()
Asynchronously removes the transactions marked for deletion.
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.
CommitFailureHandler.PruneTransactionHistoryAsync Method (CancellationToken)
Asynchronously removes the transactions marked for deletion.
Parameters
- cancellationToken
-
Type:
System.Threading.CancellationToken
The cancellation token.