public static void Main(string[] args) { // Create a channel var channel = new Channel(Host + ":" + Port, ChannelCredentials.Insecure); // Create a client with the channel var client = new GreetingService.GreetingServiceClient(channel); // Create a request var request = new HelloRequest { Name = "Sanath - on C#", Age = 30, Sentiment = Sentiment.Happy }; // Send the request Console.WriteLine("GreeterClient sending request"); var response = client.greeting(request); Console.WriteLine("GreeterClient received response: " + response.Greeting); // Goodbye Console.WriteLine("Goodbye"); response = client.goodbye(request); Console.WriteLine("GreeterClient received response: " + response.Greeting); // Shutdown channel.ShutdownAsync().Wait(); Console.WriteLine("Press any key to exit..."); Console.ReadKey(); }