コード例 #1
0
        private static async Task GetProductAsync(ProductProtoService.ProductProtoServiceClient client)
        {
            var reply = await client.GetProductAsync(new GetProductRequest
            {
                ProductId = 1
            });

            Console.WriteLine(reply.ToString());
        }
コード例 #2
0
        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());
        }