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
periodTimeSpanThe window a caller's counts are taken over.
maxMessagesPerCallerlongThe messages one caller may ask for in a period, or zero for no ceiling.
maxRecipientsPerCallerlongThe 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.