Table of Contents

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

scope StoredMailScope

The account, and the one folder of it, whose run is read.

cancellationToken CancellationToken

Cancels the read.

Returns

Task<StoredMailRederivationRun>

The run, or null where the scope has never been asked for one.

Exceptions

ArgumentNullException

Thrown when scope is null.

PrincipalNotAuthorizedException

Thrown when the use case was reached by anything but a caller granted AdminRead.

OperationCanceledException

Thrown when the caller cancels.