Boggy
C# event subscription in the context of a gRPC stream
I'm trying to understand why my code is not working in the context of a gRPC streaming method.
When calling
DoSomeSubscription()
from a singleton service, not a gRPC server service, the code works as expected.
The issue is that MyService
(singleton) behaves differently if injected into a gRPC service vs a normal singleton service.
I narrowed down the issue to the event subscription itself.
I'm not sure what the exact issue is,but my guess is that gRPC somehow works differently behing the scenes, since it has a different threading model.4 replies