-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
protobuf-net.Grpc.AspNetCore.Reflection not worked with Grpc.AspNetCore.Server.Reflection #308
Comments
same problem and when i do this
then code first service can be discovered |
Can also confirm |
Same here. Been struggling with this for the past couple days until I finally found this post. I hope it can be fixed or a workaround found. I only see the services when defined in a .proto file and NONE of the services otherwise. both grpcurl and milkman only show the .proto services. The client works and can create the service, call the method and get data back. Interface decorated as below.
Implementation class.
Configured in Program.cs as
My service is running as a Windows service btw. Sample output from my console client: [UPDATE] one correction, querying the service actually returns two entries but not what I expect, i.e., greet.Greeter and my test service. The items below is what's returned by grpcurl for example: |
also running into this problem using the below code. I was following this guide: https://martinbjorkstrom.com/posts/2020-07-08-grpc-reflection-in-net
and then
however, I am curious because of what @zyltntking said that it could be due to a conflict in having both these lines:
I'm not going to be able to easily verify this as I'm relying on some internal packages that calls |
Hi!
C# NET7 Asp.Net.Core project
I try to use both,
Grpc.AspNetCore.Server.Reflection
for proto-file based gRpc serviceGreeterGrpcProtoService
andprotobuf-net.Grpc.AspNetCore.Reflection
for gRpc code-first serviceGreeterGrpcCodeFirstService
simultaneously in one Asp Net Core web server.On testing i expected discovering of both services, but see only one one GreeterGrpcProtoService discovery - 'GreeterProto/SayHello', provided by Grpc.AspNetCore.Server.Reflection. If i test this Reflection packages separated - they individually work fine.
Tested by Postman and grpCui
Code:
After launch i see in command line text:
i expected discovery both:
GreeterGrpcCodeFirstService\SayHello
GreeterProto\SayHello
actual discovered:
GreeterProto\SayHello
The text was updated successfully, but these errors were encountered: