Table of Contents

Method ApplyFlaggedDeleteSettlementAsync

Namespace
MailFathom.Application.Synchronization.Reconciliation
Assembly
MailFathom.Application.dll

ApplyFlaggedDeleteSettlementAsync(IPersistenceSession, FlaggedDeleteSettlement, CancellationToken)

Applies what one follow-up of a folder's flag-only deletes learned.

Task ApplyFlaggedDeleteSettlementAsync(IPersistenceSession session, FlaggedDeleteSettlement settlement, CancellationToken cancellationToken)

Parameters

session IPersistenceSession

The explicit persistence session the whole settlement participates in.

settlement FlaggedDeleteSettlement

What the server said, and what becomes of each local copy.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task

A task that completes when the writes have been staged.

Remarks

A settled delete whose row another writer has already removed settles nothing and is not followed, because nothing local is left for the flag to bring back or to keep hidden. Erasing a row removes everything derived from the message with it, exactly as an expunged delete does.

A row brought back re-enters the backward pass as one never observed, so its first reading afterwards is an observation rather than a change somebody made.