Table of Contents

Method NoteIfServedFromRetainedCopyAsync

Namespace
MailFathom.Application.EmailContent.Repair
Assembly
MailFathom.Application.dll

NoteIfServedFromRetainedCopyAsync(IEmailContentRepairRequestStore, StoredEmailContent, StoredEmailId, CancellationToken)

Records that an object could not be vouched for, when the content served proves that it could not.

public static Task NoteIfServedFromRetainedCopyAsync(this IEmailContentRepairRequestStore repairRequestStore, StoredEmailContent content, StoredEmailId storedEmailId, CancellationToken cancellationToken)

Parameters

repairRequestStore IEmailContentRepairRequestStore

The store the note is recorded in.

content StoredEmailContent

The content the read is about to answer with.

storedEmailId StoredEmailId

The email that content belongs to.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task

A task that completes after the note is durable, or immediately when there is nothing to note.

Remarks

The read succeeds either way, because refusing over bytes the deployment is holding would be a self-inflicted outage. What the note buys is that the endpoint's failure is visible while releasing the retained copy is still a decision an operator has not yet taken; after the release the same situation is Missing instead, discovered by a read that can no longer answer at all.

Exceptions

ArgumentNullException

Thrown when repairRequestStore or content is null.