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
createdAtDateTimeOffsetidGuid
Returns
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
timestampDateTimeOffsetidstring
Returns
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.