Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于GRPC调试问题 #15

Open
DavidMrWang opened this issue Nov 23, 2021 · 1 comment
Open

关于GRPC调试问题 #15

DavidMrWang opened this issue Nov 23, 2021 · 1 comment

Comments

@DavidMrWang
Copy link

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

@yileicn
Copy link
Owner

yileicn commented Dec 23, 2021

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants