Method FindFirstRefusal
- Namespace
- MailFathom.Domain.Delivery.Governance
- Assembly
- MailFathom.Domain.dll
FindFirstRefusal(IReadOnlyList<OutgoingRecipient>)
Judges everybody one message is addressed to, and reports the first refusal.
public OutgoingRecipientRefusalReason? FindFirstRefusal(IReadOnlyList<OutgoingRecipient> recipients)
Parameters
recipientsIReadOnlyList<OutgoingRecipient>The addresses the message would be offered to.
Returns
- OutgoingRecipientRefusalReason?
The reason the first refused recipient is refused, or null when the policy admits them all.
Remarks
It stops at the first refusal because the message is refused whole either way, which is the reason Judge(EmailAddress) states. Reading on would only name a second address the author learns about on the next attempt, and the reason reported carries no address at all.
Exceptions
- ArgumentNullException
Thrown when
recipientsis null.