private static async Task GetProductAsync(ProductProtoServiceClient client) { Console.WriteLine("GetProductAsync started..."); var response = await client.GetProductAsync(new GetProductRequest() { ProductId = 3 }); Console.WriteLine($"GetProductAsync response: {response.ToString()}"); }
private static async Task GetProductAsync(ProductProtoServiceClient client) { // GetProductAsync Console.WriteLine("GetProductAsync started..."); var response = await client.GetProductAsync( new GetProductRequest { ProductId = 1 }); Console.WriteLine("GetProductAsync Response: " + response.ToString()); Thread.Sleep(1000); }