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
sessionIPersistenceSessionThe transaction the record commits in.
emailStoredEmailIdThe message.
verifiedAtDateTimeOffsetWhen the read-back was established.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
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.