private static async Task GetProductAsync(ProductProtoService.ProductProtoServiceClient client) { var reply = await client.GetProductAsync(new GetProductRequest { ProductId = 1 }); Console.WriteLine(reply.ToString()); }
private static async Task GetProductAsync(ProductProtoService.ProductProtoServiceClient client) { Console.WriteLine("GetProductAsync started..."); var response = await client.GetProductAsync(new GetProductRequest { ProductId = 1 }); Console.WriteLine("GetProductAsync response: " + response.ToString()); }