2 writes to ReferenceHandler
Microsoft.AspNetCore.Mvc.Core.Test (1)
Formatters\SystemTextJsonOutputFormatterTest.cs (1)
28jsonOptions.JsonSerializerOptions.ReferenceHandler = ReferenceHandler.Preserve;
Shared.Tests (1)
JsonSchemaExporter\JsonSchemaExporterTests.cs (1)
164var options = new JsonSerializerOptions(Options) { ReferenceHandler = ReferenceHandler.Preserve };
7 references to ReferenceHandler
Shared (1)
JsonSchemaExporter\JsonSchemaExporter.cs (1)
691if (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)
385if (options.ReferenceHandler == ReferenceHandler.Preserve)
System\Text\Json\Serialization\ReadStack.cs (1)
101ReferenceResolver = 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)
163Debug.Assert(options.ReferenceHandler != null); 164ReferenceResolver = options.ReferenceHandler.CreateResolver(writing: true);