Method GetInstanceAsync
- Namespace
- Millrace.Storage.PostgreSql
- Assembly
- Millrace.Storage.PostgreSql.dll
GetInstanceAsync(WorkflowInstanceId, CancellationToken)
Reads one instance, or null if it does not exist.
public ValueTask<WorkflowInstanceRecord?> GetInstanceAsync(WorkflowInstanceId id, CancellationToken ct)
Parameters
Returns
Remarks
The read half of the optimistic-concurrency loop: callers take the record, merge into it, and hand its Revision back to UpdateInstanceAsync(WorkflowInstanceRecord, long, CancellationToken), which is what detects that someone else got there first.