Table of Contents

Class EmailAttachmentTextRunBudget

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

How many octets one account run has left to read out of attachments.

public sealed class EmailAttachmentTextRunBudget
Inheritance
EmailAttachmentTextRunBudget
Inherited Members

Remarks

One of these lives for one pass and is spent down as the pass walks. It is mutable because it is a running total rather than a setting — the ceiling it starts at is MaxInputOctetsPerAccountRun, which is configuration and immutable like every other bound.

It is deliberately not shared between accounts. The synchronization run already gives each account its own isolation and its own slot, so a mailbox full of large attachments delays nobody else's run, and a budget shared across accounts would let whichever account ran first spend everybody's.

Constructors

EmailAttachmentTextRunBudget(long)

Opens a budget for one pass.

Properties

IsExhausted

Gets whether the pass has nothing left to spend.

RemainingOctets

Gets how many octets are still available to read.

Methods

TryReserve(long)

Takes the octets one attachment would cost, when the pass can still afford them.