Table of Contents

Method GetInstanceAsync

Namespace
Millrace.Storage.SqlServer
Assembly
Millrace.Storage.SqlServer.dll

GetInstanceAsync(WorkflowInstanceId, CancellationToken)

Reads one instance, or null if it does not exist.

public ValueTask<WorkflowInstanceRecord?> GetInstanceAsync(WorkflowInstanceId id, CancellationToken ct)

Parameters

id WorkflowInstanceId
ct CancellationToken

Returns

ValueTask<WorkflowInstanceRecord>

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.