Method FindResumePositionAsync
- Namespace
- MailFathom.Application.Mail.Maintenance
- Assembly
- MailFathom.Application.dll
FindResumePositionAsync(StoredMailScope, CancellationToken)
Reads the position the last committed batch of this scope's walk reached.
Task<StoredEmailId?> FindResumePositionAsync(StoredMailScope scope, CancellationToken cancellationToken)
Parameters
scopeStoredMailScopeThe account, and the one folder of it, being walked.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task<StoredEmailId?>
The identity of the last email a committed batch processed, or null when this scope's walk has not started.