Class PreferenceCookie
- Namespace
- The.Web.Preferences
- Assembly
- Instagile.Web.Client.dll
Wire format for the IPreferenceMirror: packed, compressed form of PreferenceDictionary, keeping the size minimal so that hopefully it can fit in a cookie value.
public static class PreferenceCookie
- Inheritance
-
PreferenceCookie
- Inherited Members
Fields
MaxLength
public const int MaxLength = 3800
Field Value
Name
public const string Name = "the-preferences"
Field Value
Methods
Encode(PreferenceDictionary)
Encode a dictionary for the mirror, or null if it would not fit in a cookie or contains a reserved separator.
public static string? Encode(PreferenceDictionary preferences)
Parameters
preferencesPreferenceDictionary
Returns
TryDecode(string?)
Decode a mirrored value, or null if it is missing or malformed.
public static PreferenceDictionary? TryDecode(string? encoded)
Parameters
encodedstring