2 writes to ReferenceHandler
Microsoft.AspNetCore.Mvc.Core.Test (1)
Formatters\SystemTextJsonOutputFormatterTest.cs (1)
28
jsonOptions.JsonSerializerOptions.
ReferenceHandler
= ReferenceHandler.Preserve;
Shared.Tests (1)
JsonSchemaExporter\JsonSchemaExporterTests.cs (1)
164
var options = new JsonSerializerOptions(Options) {
ReferenceHandler
= ReferenceHandler.Preserve };
7 references to ReferenceHandler
Shared (1)
JsonSchemaExporter\JsonSchemaExporter.cs (1)
691
if (options.
ReferenceHandler
== ReferenceHandler.Preserve)
System.Text.Json (6)
src\libraries\System.Text.Json\Common\JsonSourceGenerationOptionsAttribute.cs (1)
119
/// Specifies the default value of <see cref="JsonSerializerOptions.
ReferenceHandler
"/> when set.
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
385
if (options.
ReferenceHandler
== ReferenceHandler.Preserve)
System\Text\Json\Serialization\ReadStack.cs (1)
101
ReferenceResolver = options.
ReferenceHandler
!.CreateResolver(writing: false);
System\Text\Json\Serialization\ReferenceHandler.cs (1)
60
/// Optimization for the resolver used when <see cref="Preserve"/> is set in <see cref="JsonSerializerOptions.
ReferenceHandler
"/>;
System\Text\Json\Serialization\WriteStack.cs (2)
163
Debug.Assert(options.
ReferenceHandler
!= null);
164
ReferenceResolver = options.
ReferenceHandler
.CreateResolver(writing: true);