Table of Contents

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

ledger IEmbeddingSpendLedger

Keeps the durable count of what each period has spent.

budget EmbeddingSpendBudget

The ceiling and the period it is counted over.

timeProvider TimeProvider

Decides which period the present moment belongs to.

Exceptions

ArgumentNullException

Thrown when any argument is null.