Table of Contents

Method TryClaim

Namespace
MailFathom.Application.EmailContent.Storage
Assembly
MailFathom.Application.dll

TryClaim(long)

Claims room for one payload, or reports that the ceiling has none.

public StoredContentClaim? TryClaim(long bytes)

Parameters

bytes long

What the payload is expected to occupy.

Returns

StoredContentClaim

The claim, which must be disposed; or null when the ceiling has no room for it.

Exceptions

ArgumentOutOfRangeException

Thrown when bytes is not positive.