Class AttachmentDownloadOutcome
- Namespace
- MailFathom.Application.Emails.DownloadAttachment
- Assembly
- MailFathom.Application.dll
What asking for one attachment produced: the file, nothing, or a refusal this deployment states.
public sealed record AttachmentDownloadOutcome : IEquatable<AttachmentDownloadOutcome>
- Inheritance
-
AttachmentDownloadOutcome
- Implements
- Inherited Members
Remarks
Two absences rather than one, and the reason is what each of them may be told. Every way a download finds nothing — an expired capability, a message this deployment no longer serves, one belonging to somebody else, a damaged local copy, a position the message does not carry — answers uniformly, because telling them apart would let whoever holds a link learn what became of mail they cannot read. A file the screen stopped is the one refusal that may say so: whoever asked was already told by the read beside it that the attachment exists and what it is called, so the answer discloses nothing that description did not.
Which of the screen's reasons stopped it is deliberately absent. A category would say the file carries a credential, to somebody this deployment has just decided may not have the file, and an unreadable-file reason would say which shape of unreadable file the screen stops at.
Properties
- Attachment
Gets the opened attachment, which the caller owns and must dispose, or null where there is nothing to serve.
- Screened
Gets whether this deployment's screen is what stopped the download.
Methods
- NothingToServe()
Reports that there is nothing to serve, whichever of the several reasons it was.
- ScreenedOut()
Reports a file this deployment screens and would not serve.
- Served(IOpenedEmailAttachment)
Carries the attachment that was opened and, where a screen is active, read and found clean.