Method ContentUnavailable
- Namespace
- MailFathom.Application.Emails.GetEmailContent
- Assembly
- MailFathom.Application.dll
ContentUnavailable(StoredEmailId, EmailContentDefect)
Reports an email that is stored and whose content cannot be served.
public static EmailContentReadFailure ContentUnavailable(StoredEmailId storedEmailId, EmailContentDefect defect)
Parameters
storedEmailIdStoredEmailIdThe email the read named.
defectEmailContentDefectWhat was found wrong with its stored content.
Returns
- EmailContentReadFailure
The failure to publish for it.
Remarks
It stays distinct from NotFound(StoredEmailId) because the two say different things about the same request: one names an email that was never stored here, the other one that is stored and whose body this deployment cannot currently serve. Only the second schedules repair and only the second is worth repeating.