1 write to DescriptorInfo
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Internal\JsonTranscodingServerCallContext.cs (1)
45
DescriptorInfo
= descriptorInfo;
18 references to DescriptorInfo
Microsoft.AspNetCore.Grpc.JsonTranscoding (18)
Internal\JsonRequestHelpers.cs (18)
190
if (serverCallContext.
DescriptorInfo
.BodyDescriptor != null)
195
if (serverCallContext.
DescriptorInfo
.BodyDescriptor.FullName == HttpBody.Descriptor.FullName)
213
if (serverCallContext.
DescriptorInfo
.BodyDescriptorRepeated)
219
type = JsonConverterHelper.GetFieldType(serverCallContext.
DescriptorInfo
.BodyFieldDescriptor);
222
if (serverCallContext.
DescriptorInfo
.BodyFieldDescriptor.IsMap)
242
type = serverCallContext.
DescriptorInfo
.BodyDescriptor.ClrType;
245
bodyContent = (IMessage)(await JsonSerializer.DeserializeAsync(stream, serverCallContext.
DescriptorInfo
.BodyDescriptor.ClrType, serializerOptions))!;
257
if (serverCallContext.
DescriptorInfo
.BodyFieldDescriptor != null)
263
ServiceDescriptorHelpers.SetValue(requestMessage, serverCallContext.
DescriptorInfo
.BodyFieldDescriptor, bodyContent);
280
foreach (var parameterDescriptor in serverCallContext.
DescriptorInfo
.RouteParameterDescriptors)
320
var httpBody = (IMessage)Activator.CreateInstance(serverCallContext.
DescriptorInfo
.BodyDescriptor!.ClrType)!;
364
return serverCallContext.
DescriptorInfo
.PathDescriptorsCache.GetOrAdd(path, p =>
382
if (serverCallContext.
DescriptorInfo
.ResponseBodyDescriptor != null)
386
responseBody = serverCallContext.
DescriptorInfo
.ResponseBodyDescriptor.Accessor.GetValue((IMessage)message);
387
responseType = JsonConverterHelper.GetFieldType(serverCallContext.
DescriptorInfo
.ResponseBodyDescriptor);
409
if (serverCallContext.
DescriptorInfo
.BodyDescriptor != null)
411
var bodyFieldName = serverCallContext.
DescriptorInfo
.BodyFieldDescriptor?.Name;
434
if (serverCallContext.
DescriptorInfo
.RouteParameterDescriptors.ContainsKey(variable))