Class ContinuedResult<T>
- Namespace
- eQuantic.Core.Data.Repository
- Assembly
- eQuantic.Core.Data.dll
A single page of a token-continued read: the items plus the opaque token that resumes after them. Unlike
PagedResult<T> there is no total count — that is the point: the store walks its native
paging path (Cassandra PagingState, Cosmos continuation) instead of counting and skipping, so deep
pages cost the same as the first one.
public sealed class ContinuedResult<T>
Type Parameters
TThe type of the items in the page.
- Inheritance
-
ContinuedResult<T>
- Inherited Members
Constructors
ContinuedResult(IReadOnlyList<T>, string?)
Initializes the page.
public ContinuedResult(IReadOnlyList<T> items, string? continuationToken)
Parameters
itemsIReadOnlyList<T>The items in this page.
continuationTokenstringThe opaque token resuming after this page, or
nullwhen exhausted.
Properties
ContinuationToken
The opaque, serializable token that resumes the read after this page, or null when the read is
exhausted. Treat it as a black box: pass it back unchanged.
public string? ContinuationToken { get; }
Property Value
Items
The items in this page.
public IReadOnlyList<T> Items { get; }