Method ReadAsync
- Namespace
- MailFathom.Application.Mail.Export
- Assembly
- MailFathom.Application.dll
ReadAsync(MailAccountId, MailboxExportId, CancellationToken)
Reads where one export stands.
public Task<MailboxExport> ReadAsync(MailAccountId account, MailboxExportId export, CancellationToken cancellationToken)
Parameters
accountMailAccountIdThe account the export belongs to.
exportMailboxExportIdThe export's identity.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<MailboxExport>
The export.
Exceptions
- PrincipalNotAuthorizedException
Thrown when the caller does not hold the export permission.
- MailboxExportRefusedException
Thrown when the account holds no export under that identity.