Grpc.Extensions icon indicating copy to clipboard operation
Grpc.Extensions copied to clipboard

关于GRPC调试问题

Open DavidMrWang opened this issue 3 years ago • 1 comments

官方给出了一个名为Grpcurl的调试工具(类似swagger)用以调试GRPC,我发现ProtoFirst可以使用,但是Codefirst不行。翻了一下源码发现调试工具使用反射来获取接口列表,使用ProtoBuff文件生成的类都包含Descriptor这个属性,想问下大佬有什么好的思路来实现CodeFirst也能够使用Grpcurl

DavidMrWang avatar Nov 23 '21 02:11 DavidMrWang

https://docs.microsoft.com/en-us/aspnet/core/grpc/test-tools?view=aspnetcore-3.0

可以参考这个,endpoints.MapGrpcReflectionService(); 就可以了

yileicn avatar Dec 23 '21 08:12 yileicn