Table of Contents

Class DatabaseBackedPayload

Namespace
MailFathom.Application.EmailContent.Move
Assembly
MailFathom.Application.dll

One payload the database still holds, as the move reads it before deciding to carry it.

public sealed record DatabaseBackedPayload : IEquatable<DatabaseBackedPayload>
Inheritance
DatabaseBackedPayload
Implements
Inherited Members

Remarks

The bytes are deliberately absent. A batch names as many payloads as the pass may carry, and a batch that carried their contents would hold every one of them at once — which is the whole message multiplied by the batch size, over a walk whose reason for existing is that the mail is large. The move reads one payload's bytes at the moment it carries them and lets go of them before it reads the next.

The length and the digest come from the row rather than from the bytes, because they are what the copy is verified against. Reading them here, in the same query that named the payload, is what keeps the move from verifying an object against a row a concurrent write had already replaced.

Constructors

DatabaseBackedPayload(EmailContentKind, Guid, long, ReadOnlyMemory<byte>)

One payload the database still holds, as the move reads it before deciding to carry it.

Properties

ByteLength

How many bytes of raw MIME the row records.

Kind

Which of the five payload kinds this is, which decides the table it lives in.

PayloadId

The identity of the row holding it, which is what the walk is ordered by.

Sha256Hash

The digest the row records over them.