예제 #1
0
        private static void UpdateProduct(ProductService.ProductServiceClient client, Product.Product Product)
        {
            try
            {
                var response = client.UpdateProduct(new UpdateProductRequest()
                {
                    Product = Product
                });

                Console.WriteLine(response.Product.ToString());
            }
            catch (RpcException e)
            {
                Console.WriteLine(e.Status.Detail);
            }
        }