Skip to content

IReplPagingContext

Provides paging intent and output-capacity hints to command handlers.

public interface IReplPagingContext
  • CreateSource<T>(IReplPagingContext, Func<ReplPageRequest, CancellationToken, ValueTask<ReplPage<T>>>)
  • Page<T>(IReplPagingContext, IReadOnlyList<T>, string, long?)

Gets a value indicating whether the caller explicitly requested all available rows.

bool AllRequested { get; }

bool

Gets the opaque cursor supplied by the caller, when continuing a paged result.

string? Cursor { get; }

string

Gets the maximum page size allowed by the current application configuration.

int MaxPageSize { get; }

int

Gets the page size suggested for the current invocation.

int SuggestedPageSize { get; }

int

Gets the kind of output surface driving this invocation.

ReplResultSurface Surface { get; }

ReplResultSurface

Gets a best-effort hint for the number of data rows the current output surface can show.

int? VisibleRowCapacityHint { get; }

int?