Method DropAsync
- Namespace
- MailFathom.Application.Jobs.DeadLetters
- Assembly
- MailFathom.Application.dll
DropAsync(JobId, CancellationToken)
Records that one dead letter will never be run.
public Task<JobRecoveryOutcome> DropAsync(JobId jobId, CancellationToken cancellationToken)
Parameters
jobIdJobIdThe job to drop.
cancellationTokenCancellationTokenCancels the write.
Returns
- Task<JobRecoveryOutcome>
What became of the job, including that it was not one this deployment holds or had already moved on.
Remarks
Dropping asks for the same grant retrying does rather than the erasing one, because the row and its failure stay where they are: what it records is a decision, not a removal.
Exceptions
- PrincipalNotAuthorizedException
Thrown when the use case was reached by anything but a caller granted AdminOperate.
- OperationCanceledException
Thrown when the caller cancels.