2 writes to _jsonSerializerOptions
Microsoft.Extensions.AI (2)
ChatCompletion\OpenTelemetryChatClient.cs (2)
80_jsonSerializerOptions = AIJsonUtilities.DefaultOptions; 87set => _jsonSerializerOptions = Throw.IfNull(value);
5 references to _jsonSerializerOptions
Microsoft.Extensions.AI (5)
ChatCompletion\OpenTelemetryChatClient.cs (5)
86get => _jsonSerializerOptions; 125_jsonSerializerOptions.MakeReadOnly(); 156_jsonSerializerOptions.MakeReadOnly(); 428JsonSerializer.SerializeToNode(result, _jsonSerializerOptions.GetTypeInfo(result.GetType())) : 489JsonSerializer.SerializeToNode(fc.Arguments, _jsonSerializerOptions.GetTypeInfo(typeof(IDictionary<string, object?>))) :