Description
Is your feature request related to a problem? Please describe.
I need the ability to determine when a connection is made. Specifically with a bi-directional stream call, but I believe all calls are effected.
This was discussed briefly on twitter.
Describe the solution you'd like
When https://github.com/dotnet/corefx/issues/35404 is complete, it should be possible to expose when the connection is established. I proposed doing so by allowing callers to await
an Async variant of the GRPC generated client call. Alternatively, allowing a consumer to subscribe to a Connected
or StatusChanged
event on the generated Client might be preferable if the former proposal introduces inconsistent behaviour between sync/async calls.
Describe alternatives you've considered
Looking at the HttpClientCallInvoker
and it's call through to GrpcCall
I was hoping there was an alternative to voiding the RunCall
Task, but HttpClient doesn't express when connections are established (yet).