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
sessionIPersistenceSessionThe transaction the pass commits in.
accountMailAccountIdThe account.
maxEmailsintThe most messages one pass erases.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task<LocalMailFolderMailErasure>
What the pass erased, and whether another is owed.