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
byteslongWhat 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
bytesis not positive.