ServiceIdAgentThread.Serialize(JsonSerializerOptions) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.