Table of Contents

Method FindPayloadAsync

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

FindPayloadAsync(EmailContentKind, Guid, CancellationToken)

Reads back the raw MIME one database-backed payload holds.

Task<ReadOnlyMemory<byte>?> FindPayloadAsync(EmailContentKind kind, Guid payloadId, CancellationToken cancellationToken)

Parameters

kind EmailContentKind

The payload kind, which decides the table.

payloadId Guid

The identity of the row holding it.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<ReadOnlyMemory<byte>?>

The bytes, or null when the row is gone or no longer database-backed.

Remarks

An absent answer is an ordinary outcome rather than a failure: mail is erased and re-synchronized while a move is running, and a payload that stopped being the database's between the batch that named it and this read is one the move has nothing to do about.