Method Transition
- Namespace
- Millrace.Storage.Verification
- Assembly
- Millrace.Storage.Verification.dll
Transition(JobRecord, JobState, int?, DateTimeOffset?, string?, bool, bool, IReadOnlyList<JobRecord>?)
Builds a transition already fenced to claimed.
protected static JobTransition Transition(JobRecord claimed, JobState target, int? failures = null, DateTimeOffset? dueAt = null, string? error = null, bool activateContinuations = false, bool cancelContinuations = false, IReadOnlyList<JobRecord>? enqueue = null)
Parameters
claimedJobRecordtargetJobStatefailuresint?dueAtDateTimeOffset?errorstringactivateContinuationsboolcancelContinuationsboolenqueueIReadOnlyList<JobRecord>
Returns
Remarks
Takes the claimed record rather than loose values so the worker id and attempt come from what the provider actually returned. A fact testing the fence itself passes a doctored record; every other fact gets a fence that matches by construction and cannot fail for the wrong reason.