ReplPageRequestExtensions
Convenience helpers for creating result-flow pages from page-source requests.
- Kind:
Class - Namespace: Repl
- Assembly:
Repl.Core - Source: src/Repl.Core/ResultFlow/ReplPageRequestExtensions.cs
Signature
Section titled “Signature”public static class ReplPageRequestExtensionsInheritance
Section titled “Inheritance”Methods
Section titled “Methods”Page<T>(ReplPageRequest, IReadOnlyList<T>, string?, long?)
Section titled “Page<T>(ReplPageRequest, IReadOnlyList<T>, string?, long?)”Creates a typed result page for the supplied request.
public static ReplPage<T> Page<T>(this ReplPageRequest request, IReadOnlyList<T> items, string? nextCursor = null, long? totalCount = null)Type Parameters
Section titled “Type Parameters”T: Item type.
Parameters
Section titled “Parameters”request(ReplPageRequest): The page-source request being handled.items(IReadOnlyList<T>): Items in the current page.nextCursor(string): Cursor for the next page, when one exists.totalCount(long?): Total item count, when known without expensive enumeration.
Returns
Section titled “Returns”ReplPage<T> - A result page consumable by Repl renderers.