Interface IRecoveryCoordinator
- Namespace
- WorkflowForge.Extensions.Persistence.Recovery
- Assembly
- WorkflowForge.Extensions.Persistence.Recovery.dll
Coordinates validation and resumption for one or many snapshots.
public interface IRecoveryCoordinator
Methods
ResumeAllAsync(Func<IWorkflowFoundry>, Func<IWorkflow>, IRecoveryCatalog, CancellationToken)
Resumes all pending workflow executions returned by the specified catalog.
Task<int> ResumeAllAsync(Func<IWorkflowFoundry> foundryFactory, Func<IWorkflow> workflowFactory, IRecoveryCatalog catalog, CancellationToken cancellationToken = default)
Parameters
foundryFactoryFunc<IWorkflowFoundry>Factory that creates a fresh IWorkflowFoundry for each resumed execution.
workflowFactoryFunc<IWorkflow>Factory that creates the IWorkflow to re-execute.
catalogIRecoveryCatalogThe catalog providing pending snapshots.
cancellationTokenCancellationTokenToken to cancel the resume operation.
Returns
ResumeAsync(Func<IWorkflowFoundry>, Func<IWorkflow>, Guid, Guid, CancellationToken)
Resumes a single workflow execution from a persisted snapshot identified by the given keys.
Task ResumeAsync(Func<IWorkflowFoundry> foundryFactory, Func<IWorkflow> workflowFactory, Guid foundryKey, Guid workflowKey, CancellationToken cancellationToken = default)
Parameters
foundryFactoryFunc<IWorkflowFoundry>Factory that creates a fresh IWorkflowFoundry for the resumed execution.
workflowFactoryFunc<IWorkflow>Factory that creates the IWorkflow to re-execute.
foundryKeyGuidThe persisted foundry execution identifier.
workflowKeyGuidThe persisted workflow identifier.
cancellationTokenCancellationTokenToken to cancel the resume operation.