DurabilityProvider.PurgeHistoryByFilters 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.
Purges history that meet the required parameters.
public virtual System.Threading.Tasks.Task<int> PurgeHistoryByFilters (DateTime createdTimeFrom, DateTime? createdTimeTo, System.Collections.Generic.IEnumerable<DurableTask.Core.OrchestrationStatus> runtimeStatus);
abstract member PurgeHistoryByFilters : DateTime * Nullable<DateTime> * seq<DurableTask.Core.OrchestrationStatus> -> System.Threading.Tasks.Task<int>
override this.PurgeHistoryByFilters : DateTime * Nullable<DateTime> * seq<DurableTask.Core.OrchestrationStatus> -> System.Threading.Tasks.Task<int>
Public Overridable Function PurgeHistoryByFilters (createdTimeFrom As DateTime, createdTimeTo As Nullable(Of DateTime), runtimeStatus As IEnumerable(Of OrchestrationStatus)) As Task(Of Integer)
Parameters
- createdTimeFrom
- DateTime
Purge the history of orchestration instances which were created after this DateTime.
Purge the history of orchestration instances which were created before this DateTime.
- runtimeStatus
- IEnumerable<DurableTask.Core.OrchestrationStatus>
Purge the history of orchestration instances which matches the runtimeStatus.
Returns
The number of instances purged.
Applies to
Azure SDK for .NET
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for