Method MeasureAsync
- Namespace
- MailFathom.Application.Mail.Export
- Assembly
- MailFathom.Application.dll
MeasureAsync(MailAccountId, string?, CancellationToken)
Reports what an export of a mailbox, or of one folder of it, would carry — without starting one.
public Task<MailboxExportMeasurement> MeasureAsync(MailAccountId account, string? folderPath, CancellationToken cancellationToken)
Parameters
accountMailAccountIdThe account to measure.
folderPathstringOne folder's path to measure alone, or null for the whole mailbox.
cancellationTokenCancellationTokenCancels the measurement.
Returns
- Task<MailboxExportMeasurement>
The measurement, per folder and in total.
Exceptions
- PrincipalNotAuthorizedException
Thrown when the caller does not hold the export permission.
- MailboxExportRefusedException
Thrown when this deployment has nowhere to keep an archive.