Table of Contents

Method FindAsync

Namespace
MailFathom.Application.Mail.Maintenance
Assembly
MailFathom.Application.dll

FindAsync(StoredMailScope, CancellationToken)

Reads the run this scope last had, whether it is still outstanding or has ended.

Task<StoredMailRederivationRun?> FindAsync(StoredMailScope scope, CancellationToken cancellationToken)

Parameters

scope StoredMailScope

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

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<StoredMailRederivationRun>

The run, or null when this scope has never been asked for one.

Remarks

One method rather than one for the outstanding run and one for the last, because a scope keeps one row and the record says for itself whether it ended. A run that has finished is exactly as much of an answer as one still going, so reporting only the outstanding one would leave "it completed an hour ago" and "you never asked" looking identical from the outside.