Method ReadUserPageAsync
- Namespace
- MailFathom.Application.Access
- Assembly
- MailFathom.Application.dll
ReadUserPageAsync(AdministrativeListingQuery, IReadOnlySet<AssignmentScope>, CancellationToken)
Reads one page of the users some scopes cover, in identifier order.
Task<AdministrativeListingPage<UserRecord>> ReadUserPageAsync(AdministrativeListingQuery query, IReadOnlySet<AssignmentScope> within, CancellationToken cancellationToken)
Parameters
queryAdministrativeListingQueryThe page asked for.
withinIReadOnlySet<AssignmentScope>The scopes the listing answers within: every user where the deployment scope is among them, and otherwise the members of each organization and each user named.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<AdministrativeListingPage<UserRecord>>
The page, and where the following one continues; empty where no scope is given.
Remarks
This is the administrative listing's read, which walks the users a page at a time rather than reading as many as a caller bounds it to. The scopes filter the query rather than the page, so a page holds as many covered users as it is asked for and a caller scoped to one organization never pages through everybody else's.
Exceptions
- ArgumentNullException
Thrown when
queryorwithinis null.