Method ReadPageAsync
- Namespace
- MailFathom.Application.Contacts
- Assembly
- MailFathom.Application.dll
ReadPageAsync(ContactPageRequest, CancellationToken)
Serves one bounded page of the book.
public Task<ContactPage> ReadPageAsync(ContactPageRequest request, CancellationToken cancellationToken)
Parameters
requestContactPageRequestWhat the caller asked the page for.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<ContactPage>
The page, with the boundary a following one reads beyond.
Exceptions
- ArgumentNullException
Thrown when
requestis null.- PrincipalNotAuthorizedException
Thrown when the caller does not hold the reading grant.
- ContactQueryInvalidException
Thrown when the page size, the origin, or the search text is not one the book serves.
- ContactCursorMalformedException
Thrown when the cursor is not one this system issued.