TYDStatisticsService tydStatisticsService = null; // new TYDStatisticsService(ObjectFactory.GetInstance<IRedisService>(), ObjectFactory.GetInstance<IAppStoreService>());

        #endregion Fields

        #region Constructors

        public TYDStatisticsServiceTest()
        {
            Bootstrapper.Start();

            RedisService = ObjectFactory.GetInstance<IRedisService>();
            tydStatisticsService = new TYDStatisticsService(RedisService);
        }
Ejemplo n.º 2
0
        public void Execute(IJobExecutionContext context)
        {
            RESTfulClient client = new RESTfulClient();
            string result = client.Get("IndexUrl".ConfigValue());
            LogManager.GetLogger("InfoLogger").Info(result);

            TYDStatisticsService tydStatisticsService = new TYDStatisticsService(new RedisService());

            tydStatisticsService.UpdateTYDApps("TYDMaintainTagId".ConfigValue());
        }