Table of Contents

Method ReadPageAsync

Namespace
MailFathom.Application.Mail.Delivery.Tracking
Assembly
MailFathom.Application.dll

ReadPageAsync(MailAccountSelector, OutgoingEmailStage?, int?, OutboxCursor?, CancellationToken)

Reads one page of what the named account of this user is sending, newest first.

public Task<UserOutboxPageResult> ReadPageAsync(MailAccountSelector account, OutgoingEmailStage? stage, int? pageSize, OutboxCursor? cursor, CancellationToken cancellationToken)

Parameters

account MailAccountSelector

The account to read, which is required rather than optional.

stage OutgoingEmailStage?

The stage to narrow to, or null for every stage.

pageSize int?

How many sends the page may hold, or null for the default.

cursor OutboxCursor?

The cursor the previous page returned, or null for the first page.

cancellationToken CancellationToken

Cancels the read.

Returns

Task<UserOutboxPageResult>

The page, or the reason the request named none.

Exceptions

PrincipalNotAuthorizedException

Thrown when the caller does not hold MailSend, or is acting for no user.

MailAccountNotAccessibleException

Thrown when account names an account the caller's user is not assigned.