Table of Contents

Method EraseMailOfErasedFoldersAsync

Namespace
MailFathom.Application.Folders.Local
Assembly
MailFathom.Application.dll

EraseMailOfErasedFoldersAsync(IPersistenceSession, MailAccountId, int, CancellationToken)

Erases, through the cascade a stored message's erasure runs, up to a bound of the messages in the account's erased folders.

Task<LocalMailFolderMailErasure> EraseMailOfErasedFoldersAsync(IPersistenceSession session, MailAccountId account, int maxEmails, CancellationToken cancellationToken)

Parameters

session IPersistenceSession

The transaction the pass commits in.

account MailAccountId

The account.

maxEmails int

The most messages one pass erases.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<LocalMailFolderMailErasure>

What the pass erased, and whether another is owed.