PluginToolPage
Record in Oadm.Sdk.Plugins · Oadm.Sdk.dll
The page of a list tool (PluginTool.Paged) as the host hands it to the plugin: how many rows and where to start.
public sealed record PluginToolPage(int Limit, string? After)Parameters
Limit: Rows of the page, 1 toPluginTool.MaxRows.After: The sort key of the last row of the page before; null for the first page. Rows come in the order of that key.
Properties
Section titled “Properties”string? After { get; init; }The sort key of the last row of the page before; null for the first page. Rows come in the order of that key.
int Limit { get; init; }Rows of the page, 1 to PluginTool.MaxRows.
Methods
Section titled “Methods”Includes
Section titled “Includes”bool Includes(string sortKey)The sort key of a row compared with PluginToolPage.After in the ordinal order: true when the row comes after it.
static PluginToolPage Of(string? payloadJson)The page of a payload; the first page of the default size for a payload without one.
(IReadOnlyList<T> Rows, bool More) Take<T>(IEnumerable<T> rows, JsonSerializerOptions options)The rows of the page from rows (already after PluginToolPage.After, in the order of the sort key): at most PluginToolPage.Limit rows and at most PluginToolPage.RowBudgetBytes of JSON (at least one row), and whether more rows follow.
Parameters
rows: The rows afterPluginToolPage.Afterin order; read only as far as the page needs.options: The options the rows are written with.
Fields
Section titled “Fields”RowBudgetBytes
Section titled “RowBudgetBytes”const int RowBudgetBytes = 24576The most bytes of rows PluginToolPage.Take puts into one page, so the whole answer stays below the host’s 32 KB.