Class EmbeddingSpendAdmission
- Namespace
- MailFathom.Application.Emails.Embeddings.Limits
- Assembly
- MailFathom.Application.dll
Where one mailbox stands inside the current budget period, against both ceilings that bound it.
public sealed record EmbeddingSpendAdmission : IEquatable<EmbeddingSpendAdmission>
- Inheritance
-
EmbeddingSpendAdmission
- Implements
- Inherited Members
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.
Constructors
- EmbeddingSpendAdmission(EmbeddingSpendPeriod, EmbeddingSpendPeriod)
Where one mailbox stands inside the current budget period, against both ceilings that bound it.
Properties
- AdmitsRequest
Gets whether a request may be sent for this user right now.
- Deployment
What 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.
- EndsAt
Gets when the period rolls over, which is the instant paused work resumes at whichever bound stopped it.
- ReachedBound
Gets which ceiling this period has reached, if either.
- User
The 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.