Method RecordAsync
- Namespace
- MailFathom.Application.EmailContent.Repair
- Assembly
- MailFathom.Application.dll
RecordAsync(EmailContentRepairRequest, CancellationToken)
Records one email's repair request, replacing whatever was recorded for that email before.
Task RecordAsync(EmailContentRepairRequest request, CancellationToken cancellationToken)
Parameters
requestEmailContentRepairRequestThe email and the defect found in its stored content.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task
A task that completes after durable storage.
Remarks
The operation is idempotent per email, because a caller reading the same damaged message repeatedly must leave one outstanding request rather than a row per attempt. An implementation records when the defect was first seen and when it was last seen, so a repair that never succeeds stays visible as one long-running problem.
Exceptions
- ArgumentNullException
Thrown when
requestis null.