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