static async Task Main(string[] args) { using var channel = GrpcChannel.ForAddress("https://localhost:5001"); var client = new Greeter.GreeterClient(channel); var reply = await client.SayHelloAsync(new HelloRequest() { Name = "Fritz" }); Console.WriteLine($"Greeting: {reply.Message}"); var contact = await client.GetContactByIdAsync(new ContactById { Id = 1 }); Console.WriteLine($"Contact with id 1: {contact.FirstName} {contact.LastName}"); }