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
ledgerIAttachmentDerivationSpendLedgerKeeps the durable count of what each period has consumed.
assignmentsIMailAccountAssignmentsAnswers who a mailbox is assigned to, which is who its reading is counted against.
budgetAttachmentDerivationBudgetThe ceilings and the period they are counted over.
timeProviderTimeProviderDecides which period the present moment belongs to.
Exceptions
- ArgumentNullException
Thrown when any argument is null.