Question: Is there any event when connection state changed?
WeihanLi opened this issue · 4 comments
WeihanLi commented
I want to try to do something when the connection disconnected/reconnected, is there any event I could use?
and seems the State
of GrpcChannel
is not available for netstandard2.0
, is there some workaround for netstandard2.0
JamesNK commented
Detecting the connection state isn't supported on netstandard2.0. There isn't a workaround.
WeihanLi commented
@JamesNK thanks very much for the quick reply, and any event for the connection state changed? should I monitor the state to track the connection state changes?
JamesNK commented
There are no APIs for connection state in netstandard2.0. It's completely unsupported.
.NET 5 or later + SocketsHttpHandler is required.
WeihanLi commented
thanks very much