Table of Contents

Method BrowsePageAsync

Namespace
MailFathom.Application.Emails.BrowseThread
Assembly
MailFathom.Application.dll

BrowsePageAsync(BrowseThreadRequest, CancellationToken)

Reads one page of one conversation.

public Task<BrowsedThread?> BrowsePageAsync(BrowseThreadRequest request, CancellationToken cancellationToken)

Parameters

request BrowseThreadRequest

What the screen asked for.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<BrowsedThread>

The page, or null when this caller has no conversation under that identifier.

Remarks

Nothing here writes, and the operation is therefore safe to repeat. The grant is asked for before the request is validated, so a caller that may not read learns nothing about which cursors this deployment accepts.

An identifier naming no conversation this caller may see and one naming no conversation at all answer identically, so nothing in the answer separates somebody else's exchange from one that never existed.

Exceptions

ArgumentNullException

Thrown when request is null.

MailboxQueryPageSizeOutOfRangeException

Thrown when the request names a page size outside the accepted range.

MailboxQueryCursorMalformedException

Thrown when the request carries a cursor this system did not issue.

MailboxQueryCursorFilterMismatchException

Thrown when the cursor was issued for a different conversation than the request names.

EmailThreadCursorMessageMissingException

Thrown when the cursor names a message the conversation no longer shows.

SensitiveContentScannerUnavailableException

Thrown when a switched-on scanner could not establish what the page carries, which refuses the page rather than serving it unscanned.

PrincipalNotAuthorizedException

Thrown when the use case was reached by anything but a caller granted MailRead.