9 references to ServiceDescriptorHelpers
Microsoft.AspNetCore.Grpc.Swagger (9)
Internal\GrpcDataContractResolver.cs (3)
51
if (
ServiceDescriptorHelpers
.IsWellKnownType(messageDescriptor))
53
if (
ServiceDescriptorHelpers
.IsWrapperType(messageDescriptor))
110
var propertyName =
ServiceDescriptorHelpers
.FormatUnderscoreName(field.Name, pascalCase: true, preservePeriod: false);
Internal\GrpcJsonTranscodingDescriptionProvider.cs (6)
50
if (
ServiceDescriptorHelpers
.TryResolvePattern(grpcMetadata.HttpRule, out var pattern, out var verb))
78
var responseBodyDescriptor =
ServiceDescriptorHelpers
.ResolveResponseBodyDescriptor(httpRule.ResponseBody, methodDescriptor);
100
var routeParameters =
ServiceDescriptorHelpers
.ResolveRouteParameterDescriptors(httpRoutePattern.Variables, methodDescriptor.InputType);
107
var parameterName =
ServiceDescriptorHelpers
.FormatUnderscoreName(field.Name, pascalCase: true, preservePeriod: false);
124
var bodyDescriptor =
ServiceDescriptorHelpers
.ResolveBodyDescriptor(httpRule.Body, methodMetadata.ServiceType, methodDescriptor);
146
var queryParameters =
ServiceDescriptorHelpers
.ResolveQueryParameterDescriptors(routeParameters, methodDescriptor, bodyDescriptor?.Descriptor, bodyDescriptor?.FieldDescriptor);