Skip to main content
Table of Contents

Class PagedRequest

Namespace
Stratara.Contracts.Requests
Assembly
Stratara.Contracts.dll

Standard pagination parameters carried on read-side queries. Nullable so callers can omit them and let the defaults (DefaultPage, DefaultPageSize) apply.

[ExcludeFromCodeCoverage]
public sealed record PagedRequest : IEquatable<PagedRequest>
Inheritance
PagedRequest
Implements
Inherited Members
Extension Methods

Remarks

Property names are pinned via JsonPropertyNameAttribute so the wire format is independent of any consumer-side JsonSerializerOptions.PropertyNamingPolicy.

Constructors

PagedRequest(int?, int?)

Standard pagination parameters carried on read-side queries. Nullable so callers can omit them and let the defaults (DefaultPage, DefaultPageSize) apply.

public PagedRequest(int? Page = 1, int? PageSize = 100)

Parameters

Page int?

1-based page index. Defaults to DefaultPage when null.

PageSize int?

Maximum number of items per page. Defaults to DefaultPageSize when null.

Remarks

Property names are pinned via JsonPropertyNameAttribute so the wire format is independent of any consumer-side JsonSerializerOptions.PropertyNamingPolicy.

Fields

DefaultPage

Default 1-based page index when none is supplied.

public const int DefaultPage = 1

Field Value

int

DefaultPageSize

Default page-size cap when none is supplied.

public const int DefaultPageSize = 100

Field Value

int

Properties

Page

1-based page index. Defaults to DefaultPage when null.

[JsonPropertyName("Page")]
public int? Page { get; init; }

Property Value

int?

PageSize

Maximum number of items per page. Defaults to DefaultPageSize when null.

[JsonPropertyName("PageSize")]
public int? PageSize { get; init; }

Property Value

int?