cyanfish / grpc-dotnet-namedpipes

Named pipe transport for gRPC in C#/.NET
Apache License 2.0
183 stars 47 forks source link

Connection established ? #21

Closed sigmarsson closed 1 year ago

sigmarsson commented 3 years ago
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 ?

cyanfish commented 3 years ago

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.

sigmarsson commented 3 years ago

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

cyanfish commented 3 years ago

It should throw an RpcException with StatusCode.Unavailable.