protected override RESULT Process(StringBuilder messager) { var working = Config.Instance.INFO.TimeSetting.IsWorkingTime; if (working > 0) { // Retrieve Code Data From DB var stocks = new List <string>(); if (CheckTable <DBTStkFavoriteEntity>()) { accessor.RetrieveEntity <DBTStkFavoriteEntity>().ForEach(data => stocks.Add(StockInfoEntity.FormatedCode(data.Code))); } if (stocks.Count > 0) { var list = service.FetchData <TengxunStockInfoEntity>(stocks); foreach (TengxunStockInfoEntity info in list) { ProcessStockInfo(info); } } } else { RecordDailyInfo(); LastDayEntities.Clear(); Config.Instance.INFO.TimeSetting.Clear(); tables.Clear(); filter4idx.Clear(); filter4stk.Clear(); lines.Values.ToList().ForEach(line => line.TriggerSwitch()); lines.Values.ToList().ForEach(line => line.Clear()); } return(RESULT.OK); }