Skip to content
Meshline
SDK 1.6.0 · TypeView source on GitHub

Developer guide · API index

Members on this page

Meshline.Sdk

Meshline.Models.Client

HistoryRange Class

Selects adjacent batches of local history using exclusive sequence bounds.

public sealed class HistoryRange

Inheritance System.Object → HistoryRange

Remarks

Bounds are nonnegative safe integers. If both are supplied, After must be less than Before.
With Before, batches move toward older items; otherwise they move forward. Each returned batch is ascending.
Query methods copy the bounds when called. Batch size is supplied to the returned reader.

Properties

HistoryRange.After Property

The exclusive lower sequence bound, or null for no lower bound.

public System.Nullable<long> After { get; set; }

Property Value

System.Nullable<System.Int64>

HistoryRange.Before Property

The exclusive upper sequence bound, or null for no upper bound. When supplied, selects the closest earlier batch.

public System.Nullable<long> Before { get; set; }

Property Value

System.Nullable<System.Int64>

Methods

HistoryRange.Deconstruct(Nullable<long>, Nullable<long>) Method

Copies and validates the exclusive sequence bounds for deconstruction.

public void Deconstruct(out System.Nullable<long> after, out System.Nullable<long> before);

Parameters

after System.Nullable<System.Int64>

The exclusive lower sequence bound, or null for no lower bound.

before System.Nullable<System.Int64>

The exclusive upper sequence bound, or null for no upper bound.

Exceptions

System.ArgumentOutOfRangeException
A bound is negative or exceeds the maximum safe integer.

System.ArgumentException
Both bounds are supplied and After is not less than Before.

Example

var (after, before) = range;<br>