Table of Contents

Method Encode

Namespace
Millrace.Storage.Monitoring
Assembly
Millrace.dll

Encode(DateTimeOffset, Guid)

Encodes an ordering key into an opaque cursor.

public static string Encode(DateTimeOffset createdAt, Guid id)

Parameters

createdAt DateTimeOffset
id Guid

Returns

string

Encode(DateTimeOffset, string)

Encodes an ordering key whose tiebreak is a consumer-chosen string rather than an id.

public static string Encode(DateTimeOffset timestamp, string id)

Parameters

timestamp DateTimeOffset
id string

Returns

string

Remarks

Recurring definitions are keyed by a caller-supplied string, so the Guid form above does not fit them. The timestamp stays fixed-width and leading, keeping the encoding order-preserving; the id follows as UTF-8.