Method ReadAsync
- Namespace
- MailFathom.Application.Access.Organizations
- Assembly
- MailFathom.Application.dll
ReadAsync(AdministrativeListingQuery, IReadOnlySet<AssignmentScope>, CancellationToken)
Reads one page of the organizations some scopes cover, in identifier order.
Task<OrganizationListing> ReadAsync(AdministrativeListingQuery query, IReadOnlySet<AssignmentScope> within, CancellationToken cancellationToken)
Parameters
queryAdministrativeListingQueryThe page asked for.
withinIReadOnlySet<AssignmentScope>The scopes the listing answers within: every organization where the deployment scope is among them, and otherwise each organization named.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<OrganizationListing>
At most PageSize rows, each readable one with how many members it has, each unreadable one named apart, and where the following page continues.
Remarks
A row this build will not read is reported beside the listing rather than raised through it: one organization nobody can repair must not be every organization nobody can list. A user scope covers no organization, so a listing within user scopes alone is empty.