Ejemplo n.º 1
0
        private void DoWork1(object state)
        {
            _logger.LogInformation("Timed Background Service is working. for timer1");

            _util.JudgePullStockNames();
            _util.JudgePullF10();
            _util.JudgePullDailyData();
            _util.JudgeEraseRealTimeData().Wait();
        }
Ejemplo n.º 2
0
        private void DoWorkForLongPeriod(object state)
        {
            _logger.LogInformation("Timed Background Service is working. for long period");

            execLog(_util.JudgePullStockNames);
            execLog(_util.JudgePullF10);
            execLog(_util.JudgePullDailyData);
            execLog(() => _util.JudgeEraseRealTimeData().Wait());
            execLog(_util.JudgeCalcLimitNum);
            execLog(() => _util.JudgePullMarketDealDataAsync().Wait());
        }