29 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 (10)
ChatCompletion\ChatClientStructuredOutputExtensions.cs (1)
162
serializerOptions.
MakeReadOnly
();
ChatCompletion\DistributedCachingChatClient.cs (4)
53
_jsonSerializerOptions.
MakeReadOnly
();
67
_jsonSerializerOptions.
MakeReadOnly
();
82
_jsonSerializerOptions.
MakeReadOnly
();
93
_jsonSerializerOptions.
MakeReadOnly
();
ChatCompletion\OpenTelemetryChatClient.cs (2)
128
_jsonSerializerOptions.
MakeReadOnly
();
159
_jsonSerializerOptions.
MakeReadOnly
();
Embeddings\DistributedCachingEmbeddingGenerator.cs (2)
58
_jsonSerializerOptions.
MakeReadOnly
();
73
_jsonSerializerOptions.
MakeReadOnly
();
Functions\AIFunctionFactory.cs (1)
234
serializerOptions.
MakeReadOnly
();
Microsoft.Extensions.AI.Abstractions (4)
src\Shared\JsonSchemaExporter\JsonSchemaExporter.cs (1)
696
options.
MakeReadOnly
();
Utilities\AIJsonUtilities.cs (1)
86
serializerOptions.
MakeReadOnly
();
Utilities\AIJsonUtilities.Defaults.cs (1)
71
options.
MakeReadOnly
();
Utilities\AIJsonUtilities.Schema.cs (1)
181
serializerOptions.
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
();