IDurableOrchestrationClient.PurgeInstanceHistoryAsync 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
PurgeInstanceHistoryAsync(String) |
Purge the history for a concrete instance. |
PurgeInstanceHistoryAsync(DateTime, Nullable<DateTime>, IEnumerable<OrchestrationStatus>) |
Purge the orchestration history for instances that match the conditions. |
PurgeInstanceHistoryAsync(String)
Purge the history for a concrete instance.
public System.Threading.Tasks.Task<Microsoft.Azure.WebJobs.Extensions.DurableTask.PurgeHistoryResult> PurgeInstanceHistoryAsync (string instanceId);
abstract member PurgeInstanceHistoryAsync : string -> System.Threading.Tasks.Task<Microsoft.Azure.WebJobs.Extensions.DurableTask.PurgeHistoryResult>
Public Function PurgeInstanceHistoryAsync (instanceId As String) As Task(Of PurgeHistoryResult)
Parameters
- instanceId
- String
The ID of the orchestration instance to purge.
Returns
Returns an instance of PurgeHistoryResult.
Applies to
PurgeInstanceHistoryAsync(DateTime, Nullable<DateTime>, IEnumerable<OrchestrationStatus>)
Purge the orchestration history for instances that match the conditions.
public System.Threading.Tasks.Task<Microsoft.Azure.WebJobs.Extensions.DurableTask.PurgeHistoryResult> PurgeInstanceHistoryAsync (DateTime createdTimeFrom, DateTime? createdTimeTo, System.Collections.Generic.IEnumerable<DurableTask.Core.OrchestrationStatus> runtimeStatus);
abstract member PurgeInstanceHistoryAsync : DateTime * Nullable<DateTime> * seq<DurableTask.Core.OrchestrationStatus> -> System.Threading.Tasks.Task<Microsoft.Azure.WebJobs.Extensions.DurableTask.PurgeHistoryResult>
Public Function PurgeInstanceHistoryAsync (createdTimeFrom As DateTime, createdTimeTo As Nullable(Of DateTime), runtimeStatus As IEnumerable(Of OrchestrationStatus)) As Task(Of PurgeHistoryResult)
Parameters
- createdTimeFrom
- DateTime
Start creation time for querying instances for purging.
- runtimeStatus
- IEnumerable<DurableTask.Core.OrchestrationStatus>
List of runtime status for querying instances for purging. Only Completed, Terminated, or Failed will be processed.
Returns
Returns an instance of PurgeHistoryResult.