Interface IProcessCheckpointStore
Namespace: Cephalon.Behaviors.Patterns.Abstractions
Assembly: Cephalon.Behaviors.Patterns.dll
Provides process checkpoint persistence for the process-manager execution pattern.
public interface IProcessCheckpointStoreMethods
Section titled “Methods”DeleteAsync(string, CancellationToken)
Section titled “ DeleteAsync(string, CancellationToken)”Removes the checkpoint for the given process identifier.
Task DeleteAsync(string processId, CancellationToken ct = default)Parameters
Section titled “Parameters”processId string
The unique identifier of the process instance to remove.
A token that cancels the operation.
Returns
Section titled “Returns”A task that completes when the checkpoint has been removed.
GetAsync(string, CancellationToken)
Section titled “ GetAsync(string, CancellationToken)”Retrieves the checkpoint for the given process identifier.
Task<ProcessCheckpoint?> GetAsync(string processId, CancellationToken ct = default)Parameters
Section titled “Parameters”processId string
The unique identifier of the process instance.
A token that cancels the operation.
Returns
Section titled “Returns”The checkpoint, or null if not found.
SaveAsync(string, ProcessCheckpoint, CancellationToken)
Section titled “ SaveAsync(string, ProcessCheckpoint, CancellationToken)”Persists the checkpoint for the given process identifier.
Task SaveAsync(string processId, ProcessCheckpoint checkpoint, CancellationToken ct = default)Parameters
Section titled “Parameters”processId string
The unique identifier of the process instance.
checkpoint ProcessCheckpoint
The checkpoint to persist.
A token that cancels the operation.
Returns
Section titled “Returns”A task that completes when the checkpoint has been persisted.