19 references to ServiceDescriptorHelpers
Microsoft.AspNetCore.Grpc.JsonTranscoding (19)
Internal\Binding\JsonTranscodingProviderServiceBinder.cs (8)
64
ServiceDescriptorHelpers
.TryGetHttpRule(methodDescriptor, out _))
73
ServiceDescriptorHelpers
.TryGetHttpRule(methodDescriptor, out _))
83
if (
ServiceDescriptorHelpers
.TryGetHttpRule(methodDescriptor, out var httpRule))
104
if (
ServiceDescriptorHelpers
.TryGetHttpRule(methodDescriptor, out var httpRule))
137
if (
ServiceDescriptorHelpers
.TryResolvePattern(httpRule, out var pattern, out var httpVerb))
239
var routeParameterDescriptors =
ServiceDescriptorHelpers
.ResolveRouteParameterDescriptors(routeAdapter.HttpRoutePattern.Variables, methodDescriptor.InputType);
241
var bodyDescriptor =
ServiceDescriptorHelpers
.ResolveBodyDescriptor(body, typeof(TService), methodDescriptor);
242
var responseBodyDescriptor =
ServiceDescriptorHelpers
.ResolveResponseBodyDescriptor(responseBody, methodDescriptor);
Internal\Binding\JsonTranscodingServiceMethodProvider.cs (1)
54
serviceDescriptor =
ServiceDescriptorHelpers
.GetServiceDescriptor(bindMethodInfo.DeclaringType!);
Internal\Json\AnyConverter.cs (3)
43
if (
ServiceDescriptorHelpers
.IsWellKnownType(descriptor))
83
if (
ServiceDescriptorHelpers
.IsWellKnownType(descriptor))
86
if (
ServiceDescriptorHelpers
.IsWrapperType(descriptor))
Internal\Json\JsonConverterFactoryForWrappers.cs (1)
35
return
ServiceDescriptorHelpers
.IsWrapperType(descriptor);
Internal\Json\JsonConverterHelper.cs (1)
118
if (
ServiceDescriptorHelpers
.IsWrapperType(descriptor.MessageType))
Internal\Json\MessageTypeInfoResolver.cs (1)
79
if (
ServiceDescriptorHelpers
.IsWrapperType(messageDescriptor))
Internal\JsonRequestHelpers.cs (4)
263
ServiceDescriptorHelpers
.SetValue(requestMessage, serverCallContext.DescriptorInfo.BodyFieldDescriptor, bodyContent);
285
ServiceDescriptorHelpers
.RecursiveSetValue(requestMessage, parameterDescriptor.Value.DescriptorsPath, routeValue);
298
ServiceDescriptorHelpers
.RecursiveSetValue(requestMessage, pathDescriptors, value);
366
ServiceDescriptorHelpers
.TryResolveDescriptors(requestMessage.Descriptor, p.Split('.'), allowJsonName: true, out var pathDescriptors);