Table of Contents

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

allowed IReadOnlyList<OutgoingRecipientRule>

The mailboxes and organizations this deployment may write to, or nothing to admit every recipient no denied entry names.

denied IReadOnlyList<OutgoingRecipientRule>

The mailboxes and organizations this deployment may never write to.

Returns

OutgoingRecipientPolicy

The policy.

Exceptions

ArgumentNullException

Thrown when either list is null.