MCPcopy Create free account
hub / github.com/TryCatchLearn/Overflow / PaginationRequest

Class PaginationRequest

Common/Pagination.cs:5–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3namespace Common;
4
5public record PaginationRequest
6{
7 public int? Page { get; init; }
8 public int? PageSize { get; init; }
9
10 public int SafePage => Page.GetValueOrDefault(1);
11 public int CappedPageSize => Math.Min(PageSize ?? 5, 50);
12}
13
14public record PaginationResult<T>
15{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…