Class InMemoryProcessCheckpointStore
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Behaviors.Patterns.Stores
Assembly: Cephalon.Behaviors.Patterns.dll
An in-memory implementation of
public sealed class InMemoryProcessCheckpointStore : IProcessCheckpointStoreInheritance
Section titled “Inheritance”object ← InMemoryProcessCheckpointStore
Implements
Section titled “Implements”Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Methods
Section titled “Methods”DeleteAsync(string, CancellationToken)
Section titled “ DeleteAsync(string, CancellationToken)”Removes the checkpoint for the given process identifier.
public 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 completed task.
GetAsync(string, CancellationToken)
Section titled “ GetAsync(string, CancellationToken)”Retrieves the checkpoint for the given process identifier.
public 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)”Upserts the checkpoint for the given process identifier.
public 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 completed task.