Class MailDraftComposition
- Namespace
- MailFathom.Application.Mail.Delivery.Composition
- Assembly
- MailFathom.Application.dll
Carries the draft a composition produced, or the reason it produced none.
public sealed record MailDraftComposition : IEquatable<MailDraftComposition>
- Inheritance
-
MailDraftComposition
- Implements
- Inherited Members
Remarks
A refusal is a result rather than an exception for the reason AuthoredEmailComposition's is: the caller acts on it directly, nothing is written down, and the draft simply does not exist. Everything a draft is refused for is something a send is refused for as well — an injected header, a body nobody wrote, a bound — so the refusal is the same type and reads identically whichever the author was asking for.
Properties
- IsComposed
Gets whether a draft was composed.
Methods
- Composed(ComposedMailDraft)
Reports a draft built from everything the author wrote.
- Refused(AuthoredEmailRefusal)
Reports that nothing was composed, and why.