Table of Contents

Class JobEnqueueResult

Namespace
MailFathom.Application.Jobs
Assembly
MailFathom.Application.dll

Names the job an enqueue asked for, and says what the queue did with the request.

public sealed record JobEnqueueResult : IEquatable<JobEnqueueResult>
Inheritance
JobEnqueueResult
Implements
Inherited Members

Remarks

A refused request names no job, because a refusal wrote nothing and found nothing: there is no row for it to point at. That is the one meaning an absent identifier carries here, and Outcome states it, so a caller reads the outcome and never infers anything from the absence itself.

Properties

JobId

Gets the job carrying the requested type and key, or null when the request was refused.

Outcome

Gets what the queue did with the request.

Methods

AlreadyEnqueued(JobId)

Reports that a job with this type and key was already there, in whatever state.

Created(JobId)

Reports that this call wrote the job.

RefusedAtCapacity()

Reports that this job type already had as much waiting as the queue accepts.