Method ClearOccurrencesAsync
- Namespace
- MailFathom.Application.Synchronization.Drain
- Assembly
- MailFathom.Application.dll
ClearOccurrencesAsync(IPersistenceSession, MailAccountId, IReadOnlyCollection<StoredEmailId>, CancellationToken)
Clears the occurrence of every message whose expunge the source has answered.
Task<int> ClearOccurrencesAsync(IPersistenceSession session, MailAccountId account, IReadOnlyCollection<StoredEmailId> drained, CancellationToken cancellationToken)
Parameters
sessionIPersistenceSessionThe transaction the clearing commits in.
accountMailAccountIdThe account the messages belong to.
drainedIReadOnlyCollection<StoredEmailId>The messages the source no longer holds.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
Remarks
Clearing is also the data-minimization answer: a remote path and a UID that name nothing any more are not kept.