private void DoWork1(object state) { _logger.LogInformation("Timed Background Service is working. for timer1"); _util.JudgePullStockNames(); _util.JudgePullF10(); _util.JudgePullDailyData(); _util.JudgeEraseRealTimeData().Wait(); }
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()); }