Constructor EmbeddingSpendAdmission
- Namespace
- MailFathom.Application.Emails.Embeddings.Limits
- Assembly
- MailFathom.Application.dll
EmbeddingSpendAdmission(EmbeddingSpendPeriod, EmbeddingSpendPeriod)
Where one mailbox stands inside the current budget period, against both ceilings that bound it.
public EmbeddingSpendAdmission(EmbeddingSpendPeriod User, EmbeddingSpendPeriod Deployment)
Parameters
UserEmbeddingSpendPeriodThe mailbox's per-user standing: the strictest of what the users assigned it have spent and what each of their own ceilings admits, and an exhausted period naming nobody where it is assigned to none.
DeploymentEmbeddingSpendPeriodWhat this deployment actually sent in this period and what its ceiling admits, counted once per call rather than summed out of the per-user figures.
Remarks
The two halves are the same shape because they are the same question asked of two populations, and both are needed at once: a request is admitted only where both admit it, and a refusal is only actionable if it says which one refused. Both share the period's instants, so a paused worker wakes at one roll-over whichever bound stopped it.
Counts and instants only — no message, passage, or vector is describable from it, and no user is named at all: the per-user half carries one assigned user's figures without saying which, and carries nobody's where the mailbox is assigned to nobody.