Table of Contents

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

claimed JobRecord
target JobState
failures int?
dueAt DateTimeOffset?
error string
activateContinuations bool
cancelContinuations bool
enqueue IReadOnlyList<JobRecord>

Returns

JobTransition

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.