ข้ามไปยังเนื้อหา

Interface IProcessCheckpointStore

เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน

Namespace: Cephalon.Behaviors.Patterns.Abstractions
Assembly: Cephalon.Behaviors.Patterns.dll

Provides process checkpoint persistence for the process-manager execution pattern.

public interface IProcessCheckpointStore

Removes the checkpoint for the given process identifier.

Task DeleteAsync(string processId, CancellationToken ct = default)

processId string

The unique identifier of the process instance to remove.

ct CancellationToken

A token that cancels the operation.

Task

A task that completes when the checkpoint has been removed.

Retrieves the checkpoint for the given process identifier.

Task<ProcessCheckpoint?> GetAsync(string processId, CancellationToken ct = default)

processId string

The unique identifier of the process instance.

ct CancellationToken

A token that cancels the operation.

Task<ProcessCheckpoint?>

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)

processId string

The unique identifier of the process instance.

checkpoint ProcessCheckpoint

The checkpoint to persist.

ct CancellationToken

A token that cancels the operation.

Task

A task that completes when the checkpoint has been persisted.