Table of Contents

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

ledger IEmbeddingSpendLedger

Keeps the durable count of what each period has spent.

assignments IMailAccountAssignments

Answers who a mailbox is assigned to, which is who its spend is counted against.

budget EmbeddingSpendBudget

The ceilings and the period they are counted over.

timeProvider TimeProvider

Decides which period the present moment belongs to.

Exceptions

ArgumentNullException

Thrown when any argument is null.