Esempio n. 1
0
        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()}");
        }
Esempio n. 2
0
        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);
        }