Method ReadPageAsync
- Namespace
- MailFathom.Application.Tasks
- Assembly
- MailFathom.Application.dll
ReadPageAsync(PersonalTaskOrigin, int?, string?, CancellationToken)
Reads one page of the signed-in person's tasks of one origin, soonest due first.
public Task<PersonalTaskPage?> ReadPageAsync(PersonalTaskOrigin origin, int? pageSize, string? cursor, CancellationToken cancellationToken)
Parameters
originPersonalTaskOriginThe half of the list to read: what the person owes, or what mail proposed.
pageSizeint?How many tasks the page may hold, or null for DefaultPageSize; a larger number is served MaximumPageSize.
cursorstringThe cursor a previous page returned, or null for the first page.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task<PersonalTaskPage>
The page, or null when the cursor is not one this deployment issued for this reading.
Remarks
Completed tasks are served with the outstanding ones and carry the flag that tells them apart, because which of them a screen draws is the screen's decision: a list that hid them would leave a person no way to see what they did today, and one filtered here would need a second route to get them back.
Exceptions
- ArgumentOutOfRangeException
Thrown when
originis not a declared origin.- PrincipalNotAuthorizedException
Thrown when the caller acts for no user, or its grant omits TasksRead.