Method ReadPageAsync
- Namespace
- MailFathom.Infrastructure.Persistence.Users
- Assembly
- MailFathom.Infrastructure.dll
ReadPageAsync(AdministrativeListingQuery, IReadOnlySet<AssignmentScope>, CancellationToken)
Reads one page of the accounts some scopes cover, with the users each is assigned to.
Task<AdministrativeListingPage<MailAccountSummary>> ReadPageAsync(AdministrativeListingQuery query, IReadOnlySet<AssignmentScope> within, CancellationToken cancellationToken)
Parameters
queryAdministrativeListingQueryThe page asked for.
withinIReadOnlySet<AssignmentScope>The scopes the listing answers within; an account none of them covers is left out, so an empty set reads nothing.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<AdministrativeListingPage<MailAccountSummary>>
The page's accounts without their settings, in identifier order, and where the following page continues.
Remarks
The settings are left behind because a declaration may be as large as a user's whole record, and a page names up to a thousand accounts. The scopes are applied in the query rather than to the page it returned, so a page holds as many covered accounts as it may and a cursor never skips one an earlier page left out.