Table of Contents

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

session IPersistenceSession

The transaction the placement commits in.

record MailboxRestoreAppendId

The record the append was issued under.

uidValidity ImapUidValidity

The UIDVALIDITY the source named.

uid ImapUid

The UID the source named.

cancellationToken CancellationToken

Propagates 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.