Table of Contents

Method DropAsync

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

DropAsync(JobId, CancellationToken)

Records that one dead letter will never be run, leaving the row and its failure where they are.

Task<JobRecoveryOutcome> DropAsync(JobId jobId, CancellationToken cancellationToken)

Parameters

jobId JobId

The job to drop.

cancellationToken CancellationToken

Cancels the write.

Returns

Task<JobRecoveryOutcome>

What happened to the job.

Remarks

It is a state rather than a deletion, for the reason Dropped gives: the decision is itself worth keeping, and the row goes on holding the idempotency key that stops the same trigger enqueuing the same work again.