Method TryDecode
- Namespace
- MailFathom.Application.Emails.BrowseSearch
- Assembly
- MailFathom.Application.dll
TryDecode(string?, out RankedSearchCursor)
Reads a cursor a caller presented.
public static bool TryDecode(string? text, out RankedSearchCursor cursor)
Parameters
textstringThe encoded cursor, as a previous page returned it.
cursorRankedSearchCursorThe decoded cursor when the text is one this version issued; otherwise the struct default.
Returns
Remarks
Every field is validated before a cursor is produced, so a caller cannot reach a query with a boundary that decoded only partially. Whether a decoded cursor belongs to the current request is the separate question its FilterFingerprint answers, and one this method deliberately does not ask.