Пример #1
0
        public void GetWebContent(Channel channel)
        {
            _logger.Debug("更新马蜂窝的攻略:");

            channel.Init();

            int count = 0;

            var viewPointChannel = channel as ViewPointChannel;
            foreach (var item in viewPointChannel.ChannelItems)
            {
                count += GetWebContent(item);
            }

            _logger.Debug("更新马蜂窝的攻略,此次共更新条数: " + count + " 条,请敲回车结束");
        }
Пример #2
0
        //public Web_DianPing_Services(ShopSourceService shopSourceService,
        //                             ShopService shopRepository,
        //                             TagsService tagsService)
        //{
        //    //_shopService = shopRepository;
        //    //_shopSourceService = shopSourceService;
        //    //_tagsService = tagsService;
        //}
        public void GetWebContent(Channel channel)
        {
            _logger.Debug("更新点评网的商品:");

            int count = 0;

            var foodChannel = channel as FoodChannel;
            foreach (var item in foodChannel.ChannelItems)
            {
                count += GetWebContent(item);
            }

            _logger.Debug("点评网商品更新完成,此次共更新条数: " + count + " 条,请敲回车结束");
        }