31 references to MakeReadOnly
Microsoft.AspNetCore.Http.Extensions (1)
src\Shared\Json\JsonSerializerExtensions.cs (1)
21options.MakeReadOnly();
Microsoft.AspNetCore.Http.Extensions.Tests (1)
ProblemDetailsServiceCollectionExtensionsTest.cs (1)
115options.SerializerOptions.MakeReadOnly();
Microsoft.AspNetCore.Http.Results (1)
src\Shared\Json\JsonSerializerExtensions.cs (1)
21options.MakeReadOnly();
Microsoft.AspNetCore.Mvc.Core (2)
Formatters\SystemTextJsonOutputFormatter.cs (1)
26jsonSerializerOptions.MakeReadOnly();
src\Shared\Json\JsonSerializerExtensions.cs (1)
21options.MakeReadOnly();
Microsoft.AspNetCore.Routing (1)
src\Shared\Json\JsonSerializerExtensions.cs (1)
21options.MakeReadOnly();
Microsoft.Extensions.AI (12)
ChatCompletion\ChatClientStructuredOutputExtensions.cs (1)
123serializerOptions.MakeReadOnly();
ChatCompletion\DistributedCachingChatClient.cs (5)
49_jsonSerializerOptions.MakeReadOnly(); 63_jsonSerializerOptions.MakeReadOnly(); 78_jsonSerializerOptions.MakeReadOnly(); 89_jsonSerializerOptions.MakeReadOnly(); 101_jsonSerializerOptions.MakeReadOnly();
ChatCompletion\OpenTelemetryChatClient.cs (2)
125_jsonSerializerOptions.MakeReadOnly(); 156_jsonSerializerOptions.MakeReadOnly();
Embeddings\DistributedCachingEmbeddingGenerator.cs (3)
56_jsonSerializerOptions.MakeReadOnly(); 71_jsonSerializerOptions.MakeReadOnly(); 83_jsonSerializerOptions.MakeReadOnly();
Functions\AIFunctionFactory.cs (1)
194options.SerializerOptions.MakeReadOnly();
Microsoft.Extensions.AI.Abstractions (4)
src\Shared\JsonSchemaExporter\JsonSchemaExporter.cs (1)
696options.MakeReadOnly();
Utilities\AIJsonUtilities.Defaults.cs (1)
39options.MakeReadOnly();
Utilities\AIJsonUtilities.Schema.cs (2)
162options.MakeReadOnly(); 188options.MakeReadOnly();
Shared (1)
JsonSchemaExporter\JsonSchemaExporter.cs (1)
696options.MakeReadOnly();
Shared.Tests (1)
JsonSchemaExporter\JsonSchemaExporterTests.cs (1)
165options.MakeReadOnly();
System.Text.Json (7)
System\Text\Json\Nodes\JsonValueOfTCustomized.cs (1)
40options.MakeReadOnly();
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
390options.MakeReadOnly();
System\Text\Json\Serialization\JsonSerializerContext.cs (2)
32options.MakeReadOnly(); 44options.MakeReadOnly();
System\Text\Json\Serialization\JsonSerializerOptions.cs (2)
865/// or a user explicitly called the <see cref="MakeReadOnly()"/> methods on the instance. 915MakeReadOnly();
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
705Options.MakeReadOnly();