grpc-dotnet-namedpipes icon indicating copy to clipboard operation
grpc-dotnet-namedpipes copied to clipboard

Connection established ?

Open sigmarsson opened this issue 4 years ago • 3 comments

var channel = new NamedPipeChannel(".", "MY_PIPE_NAME");
var client = new Greeter.GreeterClient(channel);

Can you check if the server is listening after you execute this ?

sigmarsson avatar Mar 17 '21 18:03 sigmarsson

You can set NamedPipeChannelOptions.ConnectionTimeout and then call a method on the client and it should fail within that time if the server isn't responding.

cyanfish avatar Apr 06 '21 22:04 cyanfish

Splendid. Do you throw ex after that period elapses or return some err?

sigmarsson avatar Apr 21 '21 08:04 sigmarsson

It should throw an RpcException with StatusCode.Unavailable.

cyanfish avatar Apr 21 '21 15:04 cyanfish