Table of Contents

Method RecordContentVerifiedAsync

Namespace
MailFathom.Application.Synchronization.Drain
Assembly
MailFathom.Application.dll

RecordContentVerifiedAsync(IPersistenceSession, StoredEmailId, DateTimeOffset, CancellationToken)

Records that a message's stored payload was read back and matched what the row records.

Task RecordContentVerifiedAsync(IPersistenceSession session, StoredEmailId email, DateTimeOffset verifiedAt, CancellationToken cancellationToken)

Parameters

session IPersistenceSession

The transaction the record commits in.

email StoredEmailId

The message.

verifiedAt DateTimeOffset

When the read-back was established.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task

Remarks

Written once per message, so a batch abandoned before its commands went out does not pay for the read again on the next pass. It is a fact about the payload rather than a permission: the rest of the gate is re-read before every batch.