Table of Contents

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

maxInputCharactersPerPeriod long

The characters one period may send, or zero for no ceiling at all.

period TimeSpan

The window the ceiling is counted over.

Returns

EmbeddingSpendBudget

The budget.

Exceptions

ArgumentOutOfRangeException

Thrown when the ceiling is negative, or the period is not positive.