Share via


ServiceIdAgentThread.Serialize(JsonSerializerOptions) Method

Definition

Serializes the current object's state to a JsonElement using the specified serialization options.

public override System.Text.Json.JsonElement Serialize(System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = default);
override this.Serialize : System.Text.Json.JsonSerializerOptions -> System.Text.Json.JsonElement
Public Overrides Function Serialize (Optional jsonSerializerOptions As JsonSerializerOptions = Nothing) As JsonElement

Parameters

jsonSerializerOptions
JsonSerializerOptions

The JSON serialization options to use for the serialization process.

Returns

A JsonElement representation of the object's state, containing the service thread identifier.

Remarks

The serialized state contains only the service thread identifier, as all other conversation state is maintained remotely by the backing service. This makes the serialized representation very lightweight.

Applies to