Table of Contents

Constructor AttachmentDerivationSpendGate

Namespace
MailFathom.Application.Emails.AttachmentText.Limits
Assembly
MailFathom.Application.dll

AttachmentDerivationSpendGate(IAttachmentDerivationSpendLedger, IMailAccountAssignments, AttachmentDerivationBudget, TimeProvider)

Initializes a new gate over one deployment's attachment budget.

public AttachmentDerivationSpendGate(IAttachmentDerivationSpendLedger ledger, IMailAccountAssignments assignments, AttachmentDerivationBudget budget, TimeProvider timeProvider)

Parameters

ledger IAttachmentDerivationSpendLedger

Keeps the durable count of what each period has consumed.

assignments IMailAccountAssignments

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

budget AttachmentDerivationBudget

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.