Table of Contents

Method Create

Namespace
MailFathom.Domain.Delivery.Governance
Assembly
MailFathom.Domain.dll

Create(TimeSpan, long, long)

Builds the ceilings from what a deployment declared about one caller.

public static AuthoredSendCeilings Create(TimeSpan period, long maxMessagesPerCaller, long maxRecipientsPerCaller)

Parameters

period TimeSpan

The window a caller's counts are taken over.

maxMessagesPerCaller long

The messages one caller may ask for in a period, or zero for no ceiling.

maxRecipientsPerCaller long

The people one caller may ask this deployment to write to in a period, or zero for no ceiling.

Returns

AuthoredSendCeilings

The ceilings.

Exceptions

ArgumentOutOfRangeException

Thrown when the period is not positive, or a ceiling is negative.