Table of Contents

Class AdministrativeListingQuery

Namespace
MailFathom.Application.Paging
Assembly
MailFathom.Application.dll

Asks one page of an administrative listing walked in identifier order.

public sealed record AdministrativeListingQuery : IEquatable<AdministrativeListingQuery>
Inheritance
AdministrativeListingQuery
Implements
Inherited Members

Remarks

A page is always bounded, so a caller asking for nothing in particular is served the first DefaultPageSize rows rather than every row the deployment holds, and a walk over every row is the caller following the cursor rather than the deployment answering with all of them at once.

Fields

DefaultPageSize

The page size a request that names none is served.

MaximumPageSize

The greatest page size one request may ask for.

Properties

After

Gets the identifier the page continues after, or null for the first page.

PageSize

Gets how many rows the page holds at most.

Methods

Create(int?, Guid?)

Builds a query from what a caller asked for.

PageOf<TEntry>(IReadOnlyList<TEntry>, Func<TEntry, Guid>)

Cuts what a read of one row past this page returned into the page and where the next one continues.