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
repairRequestStoreIEmailContentRepairRequestStoreThe store the note is recorded in.
contentStoredEmailContentThe content the read is about to answer with.
storedEmailIdStoredEmailIdThe email that content belongs to.
cancellationTokenCancellationTokenPropagates 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
repairRequestStoreorcontentis null.