Table of Contents

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

request EmailContentRepairRequest

The email and the defect found in its stored content.

cancellationToken CancellationToken

Propagates 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 request is null.