Method Create
- Namespace
- MailFathom.Domain.Delivery.Governance
- Assembly
- MailFathom.Domain.dll
Create(IReadOnlyList<OutgoingRecipientRule>, IReadOnlyList<OutgoingRecipientRule>)
Builds a policy from the entries an operator wrote.
public static OutgoingRecipientPolicy Create(IReadOnlyList<OutgoingRecipientRule> allowed, IReadOnlyList<OutgoingRecipientRule> denied)
Parameters
allowedIReadOnlyList<OutgoingRecipientRule>The mailboxes and organizations this deployment may write to, or nothing to admit every recipient no denied entry names.
deniedIReadOnlyList<OutgoingRecipientRule>The mailboxes and organizations this deployment may never write to.
Returns
- OutgoingRecipientPolicy
The policy.
Exceptions
- ArgumentNullException
Thrown when either list is null.