Method ReadAsync
- Assembly
- MailFathom.Application.dll
ReadAsync(MailAccountId?, CancellationToken)
Reads where attachment and image reading stands, for one account or for the whole deployment.
public Task<AttachmentDerivationStatus> ReadAsync(MailAccountId? account, CancellationToken cancellationToken)
Parameters
accountMailAccountId?The account to report on, or null for every account together.
cancellationTokenCancellationTokenCancels the reads.
Returns
- Task<AttachmentDerivationStatus>
The coverage and both periods.
Remarks
The periods are the deployment's whichever scope the coverage was asked for, because that is what a ceiling bounds: an account is not a budget, and reporting one account's share of a deployment ceiling would invent a figure nothing enforces.
Exceptions
- OperationCanceledException
Thrown when the caller cancels.