Table of Contents

Method ReadPageAsync

Namespace
MailFathom.Application.Contacts
Assembly
MailFathom.Application.dll

ReadPageAsync(ContactBookScope, ContactQuery, CancellationToken)

Reads one bounded page of the books a scope reads.

public Task<ContactPage> ReadPageAsync(ContactBookScope scope, ContactQuery query, CancellationToken cancellationToken)

Parameters

scope ContactBookScope

The books read.

query ContactQuery

Which part of the books, how large a page, and where to continue from.

cancellationToken CancellationToken

Cancels the read.

Returns

Task<ContactPage>

The page, and the cursor the following one is asked with.

Remarks

The page is bounded by the query the caller composed, which is where the ceiling on how much of a person's correspondents leaves the database at once already lives. A collected book whose mail account the caller's scope does not cover is left out of the read, so a contact held only there is answered as absent rather than refused.

Exceptions

ArgumentNullException

Thrown when a required argument is null.

PrincipalNotAuthorizedException

Thrown when the read was reached by anything but a caller granted AdminAuditRead at a scope covering the scope's user.