Method MeasureAsync
- Namespace
- MailFathom.Application.Mail.Export
- Assembly
- MailFathom.Application.dll
MeasureAsync(MailAccountId, string?, CancellationToken)
Sums what the scope holds, per folder and in total.
Task<MailboxExportMeasurement> MeasureAsync(MailAccountId account, string? folderPath, CancellationToken cancellationToken)
Parameters
accountMailAccountIdThe account whose mailbox is measured.
folderPathstringOne folder's path to measure alone, or null for the whole mailbox.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<MailboxExportMeasurement>
The measurement, which is empty when the scope holds no stored message.
Exceptions
- ArgumentException
Thrown when
accountnames nothing.