Skip to content

Instantly share code, notes, and snippets.

@tarukosu
Created April 4, 2019 00:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tarukosu/7321c230fe8576d1759e87dd08dae3a6 to your computer and use it in GitHub Desktop.
Save tarukosu/7321c230fe8576d1759e87dd08dae3a6 to your computer and use it in GitHub Desktop.
Channel channel = new Channel("127.0.0.1:10051", ChannelCredentials.Insecure);
var client = new Greeter.GreeterClient(channel);
String user = "you";
var reply = client.SayHello(new HelloRequest { Name = user });
Console.WriteLine("Greeting: " + reply.Message);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment