Method RecordFailureAsync
- Namespace
- MailFathom.Application.Mail.Delivery.Drafts
- Assembly
- MailFathom.Application.dll
RecordFailureAsync(MailDraftId, MailFathomErrorCode, CancellationToken)
Records why the last attempt against the mail server did not leave this draft where it belongs.
Task RecordFailureAsync(MailDraftId draftId, MailFathomErrorCode failure, CancellationToken cancellationToken)
Parameters
draftIdMailDraftIdThe draft whose copy could not be settled.
failureMailFathomErrorCodeThe code identifying what ended the attempt.
cancellationTokenCancellationTokenCancels the write.
Returns
- Task
A task that completes when the code is on the record.