Table of Contents

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

account MailAccountId

The account the export belongs to.

export MailboxExportId

The export's identity.

cancellationToken CancellationToken

Cancels 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.