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

Class InMemoryProcessCheckpointStore

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

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

An in-memory implementation of backed by a . Suitable for development and testing; replace with a durable store for production use.

public sealed class InMemoryProcessCheckpointStore : IProcessCheckpointStore

objectInMemoryProcessCheckpointStore

IProcessCheckpointStore

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Removes the checkpoint for the given process identifier.

public 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 completed task.

Retrieves the checkpoint for the given process identifier.

public 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)”

Upserts the checkpoint for the given process identifier.

public 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 completed task.