16 references to JsonConverterHelper
Microsoft.AspNetCore.Grpc.JsonTranscoding (16)
GrpcJsonTranscodingOptions.cs (2)
22
() =>
JsonConverterHelper
.CreateSerializerOptions(new JsonContext(JsonSettings, TypeRegistry, DescriptorRegistry)),
25
() =>
JsonConverterHelper
.CreateSerializerOptions(new JsonContext(JsonSettings, TypeRegistry, DescriptorRegistry), isStreamingOptions: true),
Internal\Json\AnyConverter.cs (2)
88
var wrappedValue = valueMessage.Descriptor.Fields[
JsonConverterHelper
.WrapperValueFieldNumber].Accessor.GetValue(valueMessage);
112
if (!
JsonConverterHelper
.ShouldFormatFieldValue(message, field, value, !settings.IgnoreDefaultValues))
Internal\Json\JsonConverterFactoryForWellKnownTypes.cs (2)
34
return
JsonConverterHelper
.WellKnownTypeNames.ContainsKey(descriptor.FullName);
41
var converterType =
JsonConverterHelper
.WellKnownTypeNames[descriptor.FullName];
Internal\Json\ListValueConverter.cs (1)
21
JsonConverterHelper
.PopulateList(ref reader, options, message, message.Descriptor.Fields[ListValue.ValuesFieldNumber]);
Internal\Json\MessageTypeInfoResolver.cs (3)
83
if (
JsonConverterHelper
.WellKnownTypeNames.ContainsKey(messageDescriptor.FullName))
94
JsonConverterHelper
.GetFieldType(field),
104
return
JsonConverterHelper
.ShouldFormatFieldValue((IMessage)o, field, v, !_context.Settings.IgnoreDefaultValues);
Internal\Json\StructConverter.cs (1)
21
JsonConverterHelper
.PopulateMap(ref reader, options, message, message.Descriptor.Fields[Struct.FieldsFieldNumber]);
Internal\Json\WrapperConverter.cs (3)
19
var valueDescriptor = message.Descriptor.Fields[
JsonConverterHelper
.WrapperValueFieldNumber];
20
var t =
JsonConverterHelper
.GetFieldType(valueDescriptor);
29
var valueDescriptor = value.Descriptor.Fields[
JsonConverterHelper
.WrapperValueFieldNumber];
Internal\JsonRequestHelpers.cs (2)
219
type =
JsonConverterHelper
.GetFieldType(serverCallContext.DescriptorInfo.BodyFieldDescriptor);
387
responseType =
JsonConverterHelper
.GetFieldType(serverCallContext.DescriptorInfo.ResponseBodyDescriptor);