TickerQTickerQ

Helpers

TickerHelper, CronExpression, PaginationResult.

TickerHelper

Static class for serializing and deserializing ticker request payloads.

Properties

PropertyTypeDefaultDescription
RequestJsonSerializerOptionsJsonSerializerOptionsnew()JSON serializer options used for request payloads.
UseGZipCompressionboolfalseWhen true, compresses request payloads with GZip.

Methods

static byte[] CreateTickerRequest<T>(T data);
static T ReadTickerRequest<T>(byte[] bytes);
static string ReadTickerRequestAsString(byte[] bytes);

AOT-compatible overloads:

static byte[] CreateTickerRequest<T>(T data, JsonTypeInfo<T> typeInfo);
static T ReadTickerRequest<T>(byte[] bytes, JsonTypeInfo<T> typeInfo);

CronExpression

Readonly struct implementing IEquatable<CronExpression>.

Property

PropertyTypeDescription
ValuestringThe normalized 6-part cron expression string.

Static methods

static CronExpression Parse(string expression);
static bool TryParse(string expression, out CronExpression result);

Implicit conversions

// string to CronExpression
CronExpression expr = "*/5 * * * *";

// CronExpression to string
string raw = expr;

5-part expressions are automatically expanded to 6-part by prepending "0 " (zero seconds).


PaginationResult<T>

PropertyTypeDescription
ItemsIEnumerable<T>The items for the current page.
TotalCountintTotal number of items across all pages.
PageNumberintCurrent page number.
PageSizeintNumber of items per page.
TotalPagesintComputed total number of pages.
HasPreviousPageboolWhether a previous page exists.
HasNextPageboolWhether a next page exists.
FirstItemIndexintIndex of the first item on the current page.
LastItemIndexintIndex of the last item on the current page.

On this page