18 references to TypeInfoResolverChain
Microsoft.AspNetCore.Authentication.BearerToken (1)
BearerTokenConfigureJsonOptions.cs (1)
14options.SerializerOptions.TypeInfoResolverChain.Insert(0, BearerTokenJsonSerializerContext.Default);
Microsoft.AspNetCore.Components.Web (3)
WebRenderer.cs (3)
129newJsonOptions.TypeInfoResolverChain.Clear(); 130newJsonOptions.TypeInfoResolverChain.Add(WebRendererSerializerContext.Default); 131newJsonOptions.TypeInfoResolverChain.Add(JsonConverterFactoryTypeInfoResolver<DotNetObjectReference<WebRendererInteropMethods>>.Instance);
Microsoft.AspNetCore.Http.Extensions (1)
ProblemDetailsJsonOptionsSetup.cs (1)
24options.SerializerOptions.TypeInfoResolverChain.Insert(0, new ProblemDetailsJsonContext());
Microsoft.AspNetCore.Http.Extensions.Tests (8)
ProblemDetailsServiceCollectionExtensionsTest.cs (7)
147collection.ConfigureAll<JsonOptions>(options => options.SerializerOptions.TypeInfoResolverChain.Insert(0, TestExtensionsJsonContext.Default)); 151collection.ConfigureAll<JsonOptions>(options => options.SerializerOptions.TypeInfoResolverChain.Add(TestExtensionsJsonContext.Default)); 225collection.ConfigureAll<JsonOptions>(options => options.SerializerOptions.TypeInfoResolverChain.Insert(0, customProblemDetailsResolver)); 234Assert.Equal(3, jsonOptions.Value.SerializerOptions.TypeInfoResolverChain.Count); 235Assert.IsType<CustomProblemDetailsTypeInfoResolver>(jsonOptions.Value.SerializerOptions.TypeInfoResolverChain[0]); 236Assert.Equal("Microsoft.AspNetCore.Http.ProblemDetailsJsonContext", jsonOptions.Value.SerializerOptions.TypeInfoResolverChain[1].GetType().FullName); 237Assert.IsType<DefaultJsonTypeInfoResolver>(jsonOptions.Value.SerializerOptions.TypeInfoResolverChain[2]);
RequestDelegateGenerator\RequestDelegateCreationTests.Responses.cs (1)
349o.SerializerOptions.TypeInfoResolverChain.Insert(0, SharedTestJsonContext.Default);
Microsoft.AspNetCore.Identity (1)
IdentityEndpointsJsonOptionsSetup.cs (1)
15options.SerializerOptions.TypeInfoResolverChain.Insert(0, IdentityEndpointsJsonSerializerContext.Default);
Microsoft.AspNetCore.OpenApi (1)
Schemas\OpenApiSchemaJsonOptions.cs (1)
14options.SerializerOptions.TypeInfoResolverChain.Insert(0, OpenApiJsonSchemaContext.Default);
Microsoft.Extensions.AI.Tests (1)
ChatCompletion\DistributedCachingChatClientTest.cs (1)
640serializerOptions.TypeInfoResolverChain.Add(CustomAIContentJsonContext.Default);
System.Text.Json (2)
System\Text\Json\Serialization\JsonSerializerOptions.cs (2)
222/// This property is kept in sync with the <see cref="TypeInfoResolverChain"/> property. 223/// Any change made to this property will be reflected by <see cref="TypeInfoResolverChain"/> and vice versa.