23 references to GetTypeInfo
Microsoft.AspNetCore.Authentication.BearerToken (1)
BearerTokenHandler.cs (1)
87?.Value?.SerializerOptions?.GetTypeInfo(typeof(AccessTokenResponse)) as JsonTypeInfo<AccessTokenResponse>;
Microsoft.AspNetCore.Http.Extensions (4)
DefaultProblemDetailsWriter.cs (1)
67_serializerOptions.GetTypeInfo(problemDetailsType),
HttpRequestJsonExtensions.cs (2)
42return request.ReadFromJsonAsync(jsonTypeInfo: (JsonTypeInfo<TValue>)options.GetTypeInfo(typeof(TValue)), cancellationToken); 178return request.ReadFromJsonAsync(jsonTypeInfo: options.GetTypeInfo(type), cancellationToken);
src\Shared\Json\JsonSerializerExtensions.cs (1)
22return options.GetTypeInfo(type);
Microsoft.AspNetCore.Http.Extensions.Tests (5)
HttpRequestJsonExtensionsTests.cs (2)
245var result = (List<int>?)await context.Request.ReadFromJsonAsync(options.GetTypeInfo(typeof(List<int>))); 267var typeInfo = (JsonTypeInfo<List<int>>)options.GetTypeInfo(typeof(List<int>));
HttpResponseJsonExtensionsTests.cs (2)
457await context.Response.WriteAsJsonAsync(new int[] { 1, 2, 3 }, (JsonTypeInfo<int[]>)options.GetTypeInfo(typeof(int[]))); 478await context.Response.WriteAsJsonAsync(value : null, options.GetTypeInfo(typeof(Uri)));
ProblemDetailsServiceCollectionExtensionsTest.cs (1)
239var pdTypeInfo = jsonOptions.Value.SerializerOptions.GetTypeInfo(typeof(ProblemDetails));
Microsoft.AspNetCore.Http.Results (2)
HttpResultsHelper.cs (1)
38var jsonTypeInfo = (JsonTypeInfo<TValue>)jsonSerializerOptions.GetTypeInfo(typeof(TValue));
src\Shared\Json\JsonSerializerExtensions.cs (1)
22return options.GetTypeInfo(type);
Microsoft.AspNetCore.Mvc.Core (2)
Formatters\SystemTextJsonOutputFormatter.cs (1)
77var declaredTypeJsonInfo = SerializerOptions.GetTypeInfo(context.ObjectType);
src\Shared\Json\JsonSerializerExtensions.cs (1)
22return options.GetTypeInfo(type);
Microsoft.AspNetCore.OpenApi (3)
Extensions\JsonNodeSchemaExtensions.cs (1)
378var jsonDerivedType = context.TypeInfo.Options.GetTypeInfo(derivedType.DerivedType);
Schemas\OpenApiJsonSchema.Helpers.cs (2)
222var valueConverter = (JsonConverter<OpenApiJsonSchema>)options.GetTypeInfo(typeof(OpenApiJsonSchema)).Converter; 288var additionalPropsConverter = (JsonConverter<OpenApiJsonSchema>)options.GetTypeInfo(typeof(OpenApiJsonSchema)).Converter;
Microsoft.AspNetCore.OpenApi.Tests (1)
Extensions\JsonTypeInfoExtensionsTests.cs (1)
67var jsonTypeInfo = JsonSerializerOptions.Default.GetTypeInfo(type);
Microsoft.AspNetCore.Routing (1)
src\Shared\Json\JsonSerializerExtensions.cs (1)
22return options.GetTypeInfo(type);
System.Net.Http.Json (1)
System\Net\Http\Json\JsonHelpers.cs (1)
25return options.GetTypeInfo(type);
System.Text.Json (3)
System\Text\Json\Nodes\JsonNode.cs (1)
389var jsonTypeInfo = (JsonTypeInfo<T>)JsonSerializerOptions.Default.GetTypeInfo(typeof(T));
System\Text\Json\Nodes\JsonValue.cs (1)
67var jsonTypeInfo = (JsonTypeInfo<T>)JsonSerializerOptions.Default.GetTypeInfo(typeof(T));
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
192JsonTypeInfo elementTypeInfo = typeInfo.Options.GetTypeInfo(elementConverter.Type!);