Method FindReachedCeiling
- Namespace
- MailFathom.Domain.Delivery.Governance
- Assembly
- MailFathom.Domain.dll
FindReachedCeiling(AuthoredSendUsage, int)
Finds the ceiling one further message would carry a caller's period past.
public AuthoredSendCeiling? FindReachedCeiling(AuthoredSendUsage usage, int recipientCount)
Parameters
usageAuthoredSendUsageWhat the caller has already been admitted for in the period.
recipientCountintThe people the message being asked for names.
Returns
- AuthoredSendCeiling?
The ceiling reached, or null when the message is within both of them.
Remarks
The message is weighed rather than admitted on anything at all being left, for the reason the deployment's own ceilings weigh one: a send's cost is its recipient count and that is known here, so admitting a message that carries the period past its ceiling would be an overshoot nothing needed to accept.
Exceptions
- ArgumentOutOfRangeException
Thrown when
recipientCountis not positive.