Table of Contents

Class RecipientResolution

Namespace
MailFathom.Application.Mail.Delivery.Addressing
Assembly
MailFathom.Application.dll

Carries the recipients a message is addressed to, or the reason one of them addressed nobody.

public sealed record RecipientResolution : IEquatable<RecipientResolution>
Inheritance
RecipientResolution
Implements
Inherited Members

Remarks

A refusal is a result rather than an exception for the reason every other refusal on this path is: the caller acts on it directly, nothing has been written down, and the send simply does not exist.

One unresolved recipient refuses the whole message rather than dropping that person from it. A message delivered to everybody but the person whose name was ambiguous is a message whose author was told it was sent, and the one reader they cared about never receives it.

Properties

IsResolved

Gets whether every recipient the author named resolved to an address.

Recipients

Gets the recipients the message is composed with, which is empty when the resolution was refused.

Refusal

Gets why no recipients were resolved, or null when they were.

Methods

Refused(RecipientResolutionRefusalReason, int?)

Reports that a recipient addressed nobody, and why.

Resolved(IReadOnlyList<AuthoredEmailRecipient>)

Reports every recipient the author named, in the order they named them.