7 references to Preserve
Microsoft.AspNetCore.Mvc.Core.Test (1)
Formatters\SystemTextJsonOutputFormatterTest.cs (1)
28jsonOptions.JsonSerializerOptions.ReferenceHandler = ReferenceHandler.Preserve;
Microsoft.Extensions.AI.Abstractions (1)
src\Shared\JsonSchemaExporter\JsonSchemaExporter.cs (1)
691if (options.ReferenceHandler == ReferenceHandler.Preserve)
Shared (1)
JsonSchemaExporter\JsonSchemaExporter.cs (1)
691if (options.ReferenceHandler == ReferenceHandler.Preserve)
Shared.Tests (1)
JsonSchemaExporter\JsonSchemaExporterTests.cs (1)
164var options = new JsonSerializerOptions(Options) { ReferenceHandler = ReferenceHandler.Preserve };
System.Text.Json (3)
src\libraries\System.Text.Json\Common\JsonKnownReferenceHandler.cs (1)
17/// Specifies that the built-in <see cref="ReferenceHandler.Preserve"/> be used to handle references.
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
385if (options.ReferenceHandler == ReferenceHandler.Preserve)
System\Text\Json\Serialization\ReferenceHandler.cs (1)
60/// Optimization for the resolver used when <see cref="Preserve"/> is set in <see cref="JsonSerializerOptions.ReferenceHandler"/>;