18 references to TypeInfoResolverChain
Microsoft.AspNetCore.Authentication.BearerToken (1)
BearerTokenConfigureJsonOptions.cs (1)
14
options.SerializerOptions.
TypeInfoResolverChain
.Insert(0, BearerTokenJsonSerializerContext.Default);
Microsoft.AspNetCore.Components.Web (3)
WebRenderer.cs (3)
129
newJsonOptions.
TypeInfoResolverChain
.Clear();
130
newJsonOptions.
TypeInfoResolverChain
.Add(WebRendererSerializerContext.Default);
131
newJsonOptions.
TypeInfoResolverChain
.Add(JsonConverterFactoryTypeInfoResolver<DotNetObjectReference<WebRendererInteropMethods>>.Instance);
Microsoft.AspNetCore.Http.Extensions (1)
ProblemDetailsJsonOptionsSetup.cs (1)
24
options.SerializerOptions.
TypeInfoResolverChain
.Insert(0, new ProblemDetailsJsonContext());
Microsoft.AspNetCore.Http.Extensions.Tests (8)
ProblemDetailsServiceCollectionExtensionsTest.cs (7)
147
collection.ConfigureAll<JsonOptions>(options => options.SerializerOptions.
TypeInfoResolverChain
.Insert(0, TestExtensionsJsonContext.Default));
151
collection.ConfigureAll<JsonOptions>(options => options.SerializerOptions.
TypeInfoResolverChain
.Add(TestExtensionsJsonContext.Default));
225
collection.ConfigureAll<JsonOptions>(options => options.SerializerOptions.
TypeInfoResolverChain
.Insert(0, customProblemDetailsResolver));
234
Assert.Equal(3, jsonOptions.Value.SerializerOptions.
TypeInfoResolverChain
.Count);
235
Assert.IsType<CustomProblemDetailsTypeInfoResolver>(jsonOptions.Value.SerializerOptions.
TypeInfoResolverChain
[0]);
236
Assert.Equal("Microsoft.AspNetCore.Http.ProblemDetailsJsonContext", jsonOptions.Value.SerializerOptions.
TypeInfoResolverChain
[1].GetType().FullName);
237
Assert.IsType<DefaultJsonTypeInfoResolver>(jsonOptions.Value.SerializerOptions.
TypeInfoResolverChain
[2]);
RequestDelegateGenerator\RequestDelegateCreationTests.Responses.cs (1)
349
o.SerializerOptions.
TypeInfoResolverChain
.Insert(0, SharedTestJsonContext.Default);
Microsoft.AspNetCore.Identity (1)
IdentityEndpointsJsonOptionsSetup.cs (1)
15
options.SerializerOptions.
TypeInfoResolverChain
.Insert(0, IdentityEndpointsJsonSerializerContext.Default);
Microsoft.AspNetCore.OpenApi (1)
Schemas\OpenApiSchemaJsonOptions.cs (1)
14
options.SerializerOptions.
TypeInfoResolverChain
.Insert(0, OpenApiJsonSchemaContext.Default);
Microsoft.Extensions.AI.Tests (1)
ChatCompletion\DistributedCachingChatClientTest.cs (1)
640
serializerOptions.
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.