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