Table of Contents

Class AdministrativeListingCursor

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

Writes and reads the cursor an administrative listing walked in identifier order continues from.

public static class AdministrativeListingCursor
Inheritance
AdministrativeListingCursor
Inherited Members

Remarks

These listings are ordered by the row's identifier alone, which is unique, total, and what the primary key's index is already ordered by — so the boundary is that one value and a page is read straight off the index however many rows the deployment holds. Every identifier MailFathom mints is a version 7 UUID, whose leading bits are the instant it was minted, so the order is also the order the rows were recorded in.

The encoding is KeysetCursorPayload's with no position, and the listing's name is what the fingerprint is taken over: these listings take no filters, so the one thing a cursor can be wrong about is which listing issued it. A listing that walks the rows of one record — a group's members — is a different set per record, so the fingerprint is taken over that record's identifier as well and a cursor carried from one group to another is refused rather than read as a position among members it never described.

Methods

Encode(AdministrativeListing, Guid, Guid?)

Writes the cursor the page after one row continues from.

TryDecode(string?, AdministrativeListing, out Guid, Guid?)

Reads a cursor a caller presented to one listing.