31 references to MakeReadOnly
Microsoft.AspNetCore.Http.Extensions (1)
src\Shared\Json\JsonSerializerExtensions.cs (1)
21
options.
MakeReadOnly
();
Microsoft.AspNetCore.Http.Extensions.Tests (1)
ProblemDetailsServiceCollectionExtensionsTest.cs (1)
115
options.SerializerOptions.
MakeReadOnly
();
Microsoft.AspNetCore.Http.Results (1)
src\Shared\Json\JsonSerializerExtensions.cs (1)
21
options.
MakeReadOnly
();
Microsoft.AspNetCore.Mvc.Core (2)
Formatters\SystemTextJsonOutputFormatter.cs (1)
26
jsonSerializerOptions.
MakeReadOnly
();
src\Shared\Json\JsonSerializerExtensions.cs (1)
21
options.
MakeReadOnly
();
Microsoft.AspNetCore.Routing (1)
src\Shared\Json\JsonSerializerExtensions.cs (1)
21
options.
MakeReadOnly
();
Microsoft.Extensions.AI (12)
ChatCompletion\ChatClientStructuredOutputExtensions.cs (1)
123
serializerOptions.
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)
194
options.SerializerOptions.
MakeReadOnly
();
Microsoft.Extensions.AI.Abstractions (4)
src\Shared\JsonSchemaExporter\JsonSchemaExporter.cs (1)
696
options.
MakeReadOnly
();
Utilities\AIJsonUtilities.Defaults.cs (1)
39
options.
MakeReadOnly
();
Utilities\AIJsonUtilities.Schema.cs (2)
162
options.
MakeReadOnly
();
188
options.
MakeReadOnly
();
Shared (1)
JsonSchemaExporter\JsonSchemaExporter.cs (1)
696
options.
MakeReadOnly
();
Shared.Tests (1)
JsonSchemaExporter\JsonSchemaExporterTests.cs (1)
165
options.
MakeReadOnly
();
System.Text.Json (7)
System\Text\Json\Nodes\JsonValueOfTCustomized.cs (1)
40
options.
MakeReadOnly
();
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
390
options.
MakeReadOnly
();
System\Text\Json\Serialization\JsonSerializerContext.cs (2)
32
options.
MakeReadOnly
();
44
options.
MakeReadOnly
();
System\Text\Json\Serialization\JsonSerializerOptions.cs (2)
865
/// or a user explicitly called the <see cref="
MakeReadOnly
()"/> methods on the instance.
915
MakeReadOnly
();
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
705
Options.
MakeReadOnly
();