Constructor EmbeddingSpendGate
- Namespace
- MailFathom.Application.Emails.Embeddings.Limits
- Assembly
- MailFathom.Application.dll
EmbeddingSpendGate(IEmbeddingSpendLedger, IMailAccountAssignments, EmbeddingSpendBudget, TimeProvider)
Initializes a new gate over one deployment's budget.
public EmbeddingSpendGate(IEmbeddingSpendLedger ledger, IMailAccountAssignments assignments, EmbeddingSpendBudget budget, TimeProvider timeProvider)
Parameters
ledgerIEmbeddingSpendLedgerKeeps the durable count of what each period has spent.
assignmentsIMailAccountAssignmentsAnswers who a mailbox is assigned to, which is who its spend is counted against.
budgetEmbeddingSpendBudgetThe ceilings and the period they are counted over.
timeProviderTimeProviderDecides which period the present moment belongs to.
Exceptions
- ArgumentNullException
Thrown when any argument is null.