/// <summary> /// 入口 /// </summary> public void Request() { try { LoadConfig();//加载配置 } catch (Exception ex) { log.WriteLog(E_ProcessLogType.Error, "加载配置异常。" + ex.Message); return; } //更新数据到业务表 TaskHelper.RegisterTask(() => { try { List <DC_REAL_DATA> datas = dC_Service.GetRealDatas(); foreach (var obj in RealObjects) { try { obj.Request(datas); } catch (Exception ex) { log.WriteLog(E_ProcessLogType.Error, "更新数据异常。" + ex.Message); } } } catch (Exception ex) { log.WriteLog(E_ProcessLogType.Error, "查询已更新实时数据异常。" + ex.Message); } }); }