Method ReadPageAsync
- Namespace
- MailFathom.Application.Contacts
- Assembly
- MailFathom.Application.dll
ReadPageAsync(ContactQuery, CancellationToken)
Reads one bounded page of the book.
public Task<ContactPage> ReadPageAsync(ContactQuery query, CancellationToken cancellationToken)
Parameters
queryContactQueryWhich part of the book, how large a page, and where to continue from.
cancellationTokenCancellationTokenCancels 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.
Exceptions
- ArgumentNullException
Thrown when
queryis null.- PrincipalNotAuthorizedException
Thrown when the read was reached by anything but a caller granted AdminAuditRead.