Method FindAsync
- Namespace
- MailFathom.Application.Mail.Maintenance
- Assembly
- MailFathom.Application.dll
FindAsync(StoredMailScope, CancellationToken)
Reads the run one scope has outstanding, or the last one it finished.
public Task<StoredMailRederivationRun?> FindAsync(StoredMailScope scope, CancellationToken cancellationToken)
Parameters
scopeStoredMailScopeThe account, and the one folder of it, whose run is read.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<StoredMailRederivationRun>
The run, or null where the scope has never been asked for one.
Exceptions
- ArgumentNullException
Thrown when
scopeis null.- PrincipalNotAuthorizedException
Thrown when the use case was reached by anything but a caller granted AdminRead.
- OperationCanceledException
Thrown when the caller cancels.