Method CountUnvouchedAsync
- Namespace
- MailFathom.Application.Mail.Delivery.Governance
- Assembly
- MailFathom.Application.dll
CountUnvouchedAsync(IReadOnlyList<AuthoredEmailRecipient>, CancellationToken)
Counts the recipients a caller named itself that nothing this deployment holds vouches for.
public Task<int> CountUnvouchedAsync(IReadOnlyList<AuthoredEmailRecipient> recipients, CancellationToken cancellationToken)
Parameters
recipientsIReadOnlyList<AuthoredEmailRecipient>Everybody the message is addressed to, whoever put them there.
cancellationTokenCancellationTokenCancels the reads of the book.
Returns
Remarks
Text that names no mailbox at all is not counted here. Whether an address parses is the composition's question and it refuses one that does not, so counting unparsable text would refuse a send for a reason the caller is about to be told properly.
Exceptions
- ArgumentNullException
Thrown when
recipientsis null.