Class AuthoredEmailComposition
- Namespace
- MailFathom.Application.Mail.Delivery.Composition
- Assembly
- MailFathom.Application.dll
Carries the message a composition produced, or the reason it produced none.
public sealed record AuthoredEmailComposition : IEquatable<AuthoredEmailComposition>
- Inheritance
-
AuthoredEmailComposition
- Implements
- Inherited Members
Remarks
A refusal is a result rather than an exception because the caller acts on it directly: an author is told which field to correct and nothing is written down, so the send simply does not exist. Raising instead would make every boundary that authors a message translate an exception back into the same three facts this already carries.
Properties
- IsComposed
Gets whether a message was composed.
Methods
- Composed(ComposedOutgoingEmail)
Reports a message built from everything the author wrote.
- Refused(AuthoredEmailRefusal)
Reports that nothing was composed, and why.
- Refused(AuthoredEmailRefusalReason, AuthoredEmailField, long?)
Reports that nothing was composed, from the parts a refusal is made of.