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