Struct PersonalTaskCursor
- Namespace
- MailFathom.Application.Tasks
- Assembly
- MailFathom.Application.dll
Marks where one page of a person's tasks ended, so the next page continues from it.
public readonly record struct PersonalTaskCursor : IEquatable<PersonalTaskCursor>
- Implements
- Inherited Members
Remarks
The list is ordered by the day a task is due with the identifier breaking a tie, and this pairs those two values. That is what makes the walk keyset-based rather than offset-based, which matters on a list somebody is editing while they read it: a task completed, dated, or accepted between two pages would shift an offset window and repeat or skip a row on every page after it.
A boundary with no day is the undated block, which the order puts last. It is a position like any other rather than an absent one, so continuing from it walks the undated tasks by identifier alone.
It carries the position and nothing else. The opaque encoded form every keyset cursor takes at a transport boundary, and the fingerprint that refuses one presented by somebody it was not issued to, belong to the surface that issues it rather than to this port, and arrive with the route that serves this list.
Properties
- Task
Gets the identity of that task, which breaks a tie between two due on the same day.
Methods
- After(DateOnly?, PersonalTaskId)
Creates the cursor that continues a walk after one position in the list.