Ejemplo n.º 1
0
        protected override bool ValidateClient(string endpoint, GrpcCommunicationClient <TGrpcClient> client)
        {
            var channel = client.Channel;

            return(channel.State == ChannelState.Ready && channel.Target.Equals(endpoint));
        }
Ejemplo n.º 2
0
 protected override void AbortClient(GrpcCommunicationClient <TGrpcClient> client)
 {
     client.Channel.ShutdownAsync().Wait();
 }
Ejemplo n.º 3
0
 protected override bool ValidateClient(GrpcCommunicationClient <TGrpcClient> client)
 {
     return(client.Channel.State == ChannelState.Ready);
 }