Method RecordPlacementAsync
- Namespace
- MailFathom.Application.Synchronization.Restore
- Assembly
- MailFathom.Application.dll
RecordPlacementAsync(IPersistenceSession, MailboxRestoreAppendId, ImapUidValidity, ImapUid, CancellationToken)
Writes down the placement the source named, on the record the append was issued under.
Task RecordPlacementAsync(IPersistenceSession session, MailboxRestoreAppendId record, ImapUidValidity uidValidity, ImapUid uid, CancellationToken cancellationToken)
Parameters
sessionIPersistenceSessionThe transaction the placement commits in.
recordMailboxRestoreAppendIdThe record the append was issued under.
uidValidityImapUidValidityThe UIDVALIDITY the source named.
uidImapUidThe UID the source named.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task
A task that completes once the placement is staged in the session.
Remarks
An update by primary key and nothing else, which is what makes it the narrowest write between a fully answered
APPEND and the occurrence that answer justifies. Carrying the occurrence onto the message can lose a
race against synchronization and needs the message's own row; this cannot lose anything, so a record that
carries a placement is one the next pass finishes on its own rather than one an operator has to establish.