Method ReadCoverageAsync
- Assembly
- MailFathom.Application.dll
ReadCoverageAsync(MailAccountId?, CancellationToken)
Counts what attachment reading has done and what it still owes.
Task<AttachmentDerivationCoverage> ReadCoverageAsync(MailAccountId? account, CancellationToken cancellationToken)
Parameters
accountMailAccountId?The account to count, or null to count every account together.
cancellationTokenCancellationTokenCancels the counting.
Returns
- Task<AttachmentDerivationCoverage>
The coverage, which reports nothing outstanding for a scope holding no mail with attachments.
Remarks
Unbounded aggregates over a mailbox's attachment readings, so it is asked once per operator command or status request rather than per unit of work.