Method Create
- Namespace
- MailFathom.Application.Emails.Embeddings.Limits
- Assembly
- MailFathom.Application.dll
Create(long, TimeSpan)
Builds a budget from what a deployment declared.
public static EmbeddingSpendBudget Create(long maxInputCharactersPerPeriod, TimeSpan period)
Parameters
maxInputCharactersPerPeriodlongThe characters one period may send, or zero for no ceiling at all.
periodTimeSpanThe window the ceiling is counted over.
Returns
- EmbeddingSpendBudget
The budget.
Exceptions
- ArgumentOutOfRangeException
Thrown when the ceiling is negative, or the period is not positive.