예제 #1
0
        private static async Task GetProductBasePrice()
        {
            var productService = new ProductPriceService();

            using (var stoper = new Stoper())
            {
                var productPrices = await productService.GetProductBasePrices();

                foreach (var item in productPrices)
                {
                    HappyConsole.WriteBlueLine($"{item.ProductId,2} - {item.Price,5} - {item.IsActive}");
                }
            }
        }
예제 #2
0
파일: Program.cs 프로젝트: Carq/gRPC.Net
 private static void DisplayProduct(Product item)
 {
     HappyConsole.WriteBlueLine($"{item.ProductId,2} - {item.Price,5} - {item.IsActive}");
 }