Method BrowsePageAsync
- Namespace
- MailFathom.Application.Emails.BrowseTimeline
- Assembly
- MailFathom.Application.dll
BrowsePageAsync(BrowseTimelineRequest, CancellationToken)
Reads one page of the list.
public Task<BrowsedTimelinePage> BrowsePageAsync(BrowseTimelineRequest request, CancellationToken cancellationToken)
Parameters
requestBrowseTimelineRequestWhat the screen asked for.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task<BrowsedTimelinePage>
The page, and the cursor that continues it at each end where one exists.
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 filters this deployment accepts.
Exceptions
- ArgumentNullException
Thrown when
requestis null.- ArgumentOutOfRangeException
Thrown when the request names an order or a page direction that is not a defined member.
- MailboxQueryFilterInvalidException
Thrown when a filter carries a value or a count the query does not accept, and when a backward page is asked for without a cursor.
- MailAccountNotAccessibleException
Thrown when the request names an account its user does not own.
- 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 list than the request describes.
- 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.