Class SessionResumptionConfig
Configuration of session resumption mechanism. Included in
LiveConnectConfig.session_resumption. If included server will send
LiveServerSessionResumptionUpdate messages.
public record SessionResumptionConfig : IEquatable<SessionResumptionConfig>
- Inheritance
-
SessionResumptionConfig
- Implements
- Inherited Members
Properties
Handle
Session resumption handle of previous session (session to restore). If not present new session will be started.
[JsonPropertyName("handle")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Handle { get; set; }
Property Value
Transparent
If set the server will send last_consumed_client_message_index in the
session_resumption_update messages to allow for transparent reconnections.
[JsonPropertyName("transparent")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public bool? Transparent { get; set; }
Property Value
- bool?
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a SessionResumptionConfig object.
public static SessionResumptionConfig? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- SessionResumptionConfig
The deserialized SessionResumptionConfig object, or null if deserialization fails.