Method ClearResumePositionAsync
- Namespace
- MailFathom.Application.Mail.Maintenance
- Assembly
- MailFathom.Application.dll
ClearResumePositionAsync(IPersistenceSession, StoredMailScope, CancellationToken)
Forgets this scope's walk, which is what an invocation that reached the end of it records.
Task ClearResumePositionAsync(IPersistenceSession session, StoredMailScope scope, CancellationToken cancellationToken)
Parameters
sessionIPersistenceSessionThe explicit persistence session this write participates in.
scopeStoredMailScopeThe account, and the one folder of it, whose walk has finished.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task
A task that completes when the write has been staged.
Remarks
A finished walk keeps no position, so asking for the same scope again re-reads it from the beginning. That is the behavior the command exists for: the next release adds another property, and the operator asks again.