Table of Contents

Class StoredContentClaim

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

Holds room under StoredContentCeiling while one payload is being fetched and stored.

public sealed class StoredContentClaim : IDisposable
Inheritance
StoredContentClaim
Implements
Inherited Members

Remarks

A claim is taken against what a message is expected to occupy, before it is fetched, and settled against what was actually written. Disposing it gives back whatever was never settled, so a fetch that was abandoned and a commit that was rolled back both leave the ceiling where they found it rather than consuming room nothing occupies.

Properties

ClaimedBytes

Gets what was claimed before the payload was fetched.

Methods

Dispose()

Gives back whatever the claim still holds.

Settle(long)

Keeps room for what was actually stored and gives back the rest.