Table of Contents

Method Job

Namespace
Millrace.Storage.Verification
Assembly
Millrace.Storage.Verification.dll

Job(TimeProvider, JobState, string, int, string?, string?, JobId?, DateTimeOffset?, Retry?)

Builds a job record with everything defaulted except what a fact is about.

protected static JobRecord Job(TimeProvider time, JobState state = JobState.Enqueued, string queue = "default", int priority = 0, string? idempotencyKey = null, string? tenantId = null, JobId? parentId = null, DateTimeOffset? dueAt = null, Retry? retry = null)

Parameters

time TimeProvider
state JobState
queue string
priority int
idempotencyKey string
tenantId string
parentId JobId?
dueAt DateTimeOffset?
retry Retry

Returns

JobRecord

Remarks

Defaults to None, so a fact that does not mention retries cannot have its outcome quietly changed by a retry it did not ask for.