9 implementations of IJsonTypeInfoResolver
Microsoft.AspNetCore.Components.Web (1)
src\Components\Shared\src\JsonSerialization\JsonConverterFactoryTypeInfoResolver.cs (1)
13
internal sealed class JsonConverterFactoryTypeInfoResolver<T> :
IJsonTypeInfoResolver
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Internal\Json\MessageTypeInfoResolver.cs (1)
17
internal sealed class MessageTypeInfoResolver :
IJsonTypeInfoResolver
Microsoft.AspNetCore.Http.Extensions.Tests (1)
ProblemDetailsServiceCollectionExtensionsTest.cs (1)
249
internal class CustomProblemDetailsTypeInfoResolver :
IJsonTypeInfoResolver
System.Text.Json (6)
System\Text\Json\Serialization\JsonSerializerContext.cs (1)
12
public abstract partial class JsonSerializerContext :
IJsonTypeInfoResolver
, IBuiltInJsonTypeInfoResolver
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.cs (1)
16
public partial class DefaultJsonTypeInfoResolver :
IJsonTypeInfoResolver
, IBuiltInJsonTypeInfoResolver
System\Text\Json\Serialization\Metadata\JsonTypeInfoResolver.cs (1)
103
internal sealed class EmptyJsonTypeInfoResolver :
IJsonTypeInfoResolver
, IBuiltInJsonTypeInfoResolver
System\Text\Json\Serialization\Metadata\JsonTypeInfoResolverChain.cs (2)
6
internal class JsonTypeInfoResolverChain : ConfigurationList<
IJsonTypeInfoResolver
>,
IJsonTypeInfoResolver
, IBuiltInJsonTypeInfoResolver
System\Text\Json\Serialization\Metadata\JsonTypeInfoResolverWithAddedModifiers.cs (1)
8
internal sealed class JsonTypeInfoResolverWithAddedModifiers :
IJsonTypeInfoResolver
46 references to IJsonTypeInfoResolver
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Internal\Json\JsonConverterHelper.cs (1)
40
var
typeInfoResolver = JsonTypeInfoResolver.Combine(
Microsoft.AspNetCore.Http.Extensions (1)
JsonOptions.cs (1)
38
private static
IJsonTypeInfoResolver
CreateDefaultTypeResolver()
Microsoft.AspNetCore.Http.Extensions.Tests (1)
JsonOptionsTests.cs (1)
27
Assert.IsAssignableFrom<
IJsonTypeInfoResolver
>(options.TypeInfoResolver);
Microsoft.AspNetCore.Mvc.Core (1)
JsonOptions.cs (1)
48
private static
IJsonTypeInfoResolver
CreateDefaultTypeResolver()
Microsoft.AspNetCore.Mvc.Core.Test (2)
Formatters\SystemTextJsonOutputFormatterTest.cs (1)
285
Assert.IsAssignableFrom<
IJsonTypeInfoResolver
>(stjOutputFormatter.SerializerOptions.TypeInfoResolver);
JsonOptionsTest.cs (1)
26
Assert.IsAssignableFrom<
IJsonTypeInfoResolver
>(options.TypeInfoResolver);
System.Text.Json (40)
System\Text\Json\Serialization\Converters\Object\ObjectConverter.cs (2)
76
private readonly
IJsonTypeInfoResolver
_originatingResolver;
78
public SlimObjectConverter(
IJsonTypeInfoResolver
originatingResolver)
System\Text\Json\Serialization\JsonSerializerContext.cs (1)
110
JsonTypeInfo?
IJsonTypeInfoResolver
.GetTypeInfo(Type type, JsonSerializerOptions options)
System\Text\Json\Serialization\JsonSerializerOptions.cs (6)
72
private
IJsonTypeInfoResolver
? _typeInfoResolver;
225
public
IJsonTypeInfoResolver
? TypeInfoResolver
257
public IList<
IJsonTypeInfoResolver
> TypeInfoResolverChain => _typeInfoResolverChain ??= new(this);
982
private
IJsonTypeInfoResolver
? _effectiveJsonTypeInfoResolver;
986
IJsonTypeInfoResolver
? resolver = _effectiveJsonTypeInfoResolver ?? _typeInfoResolver;
1100
protected override void ValidateAddedValue(
IJsonTypeInfoResolver
item)
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (3)
600
/// Gets or sets the <see cref="
IJsonTypeInfoResolver
"/> from which this metadata instance originated.
610
public
IJsonTypeInfoResolver
? OriginatingResolver
629
private
IJsonTypeInfoResolver
? _originatingResolver;
System\Text\Json\Serialization\Metadata\JsonTypeInfoResolver.cs (18)
7
/// Contains utilities and combinators acting on <see cref="
IJsonTypeInfoResolver
"/>.
12
/// Combines multiple <see cref="
IJsonTypeInfoResolver
"/> sources into one.
15
/// <returns>A <see cref="
IJsonTypeInfoResolver
"/> combining results from <paramref name="resolvers"/>.</returns>
26
public static
IJsonTypeInfoResolver
Combine(params
IJsonTypeInfoResolver
?[] resolvers)
33
return Combine((ReadOnlySpan<
IJsonTypeInfoResolver
?>)resolvers);
37
/// Combines multiple <see cref="
IJsonTypeInfoResolver
"/> sources into one.
40
/// <returns>A <see cref="
IJsonTypeInfoResolver
"/> combining results from <paramref name="resolvers"/>.</returns>
50
public static
IJsonTypeInfoResolver
Combine(params ReadOnlySpan<
IJsonTypeInfoResolver
?> resolvers)
53
foreach (
IJsonTypeInfoResolver
? resolver in resolvers)
66
/// <returns>A new <see cref="
IJsonTypeInfoResolver
"/> instance applying the modifications.</returns>
69
/// extended to arbitrary <see cref="
IJsonTypeInfoResolver
"/> instances.
71
public static
IJsonTypeInfoResolver
WithAddedModifier(this
IJsonTypeInfoResolver
resolver, Action<JsonTypeInfo> modifier)
90
internal static
IJsonTypeInfoResolver
Empty { get; } = new EmptyJsonTypeInfoResolver();
96
internal static bool IsCompatibleWithOptions(this
IJsonTypeInfoResolver
? resolver, JsonSerializerOptions options)
101
/// A <see cref="
IJsonTypeInfoResolver
"/> that returns null for all inputs.
System\Text\Json\Serialization\Metadata\JsonTypeInfoResolverChain.cs (4)
15
foreach (
IJsonTypeInfoResolver
resolver in _list)
27
internal void AddFlattened(
IJsonTypeInfoResolver
? resolver)
46
foreach (
IJsonTypeInfoResolver
component in _list)
60
foreach (
IJsonTypeInfoResolver
resolver in _list)
System\Text\Json\Serialization\Metadata\JsonTypeInfoResolverWithAddedModifiers.cs (2)
10
private readonly
IJsonTypeInfoResolver
_source;
13
public JsonTypeInfoResolverWithAddedModifiers(
IJsonTypeInfoResolver
source, Action<JsonTypeInfo>[] modifiers)
System\Text\Json\ThrowHelper.Serialization.cs (4)
813
public static void ThrowNotSupportedException_NoMetadataForType(Type type,
IJsonTypeInfoResolver
? resolver)
830
public static void ThrowInvalidOperationException_NoMetadataForType(Type type,
IJsonTypeInfoResolver
? resolver)
835
public static Exception GetInvalidOperationException_NoMetadataForTypeProperties(
IJsonTypeInfoResolver
? resolver, Type type)
841
public static void ThrowInvalidOperationException_NoMetadataForTypeProperties(
IJsonTypeInfoResolver
? resolver, Type type)