Ejemplo n.º 1
0
        public void GrpThePlan(bool IsBackTest)
        {
            //Log("初始化服务器设置","分组准备运行计划列表");
            Dictionary <string, CalcStragGroupClass <T> > outret = null;

            this.AllRunningPlanGrps = InitServerClass.InitCalcStrags(UseDataPoint, ref outret, this.AllStrags, this.AllRunPlannings, this.AllAssetUnits, true, IsBackTest);
        }
Ejemplo n.º 2
0
        public void Init(GlobalClass gc)
        {
            if (gc == null)
            {
                gc = new GlobalClass();
            }
            this.gc = gc;

            wxlog = new WXLogClass("服务器管理员", gc.WXLogNoticeUser, string.Format(gc.WXLogUrl, gc.WXSVRHost));

            LogableClass.ToLog("初始化服务器设置", "初始化策略列表");
            wxlog.Log("初始化服务器设置", "初始化策略列表");
            this.AllStrags = InitServerClass.Init_StragList <T>();
            LogableClass.ToLog("初始化服务器设置", "初始化运行计划列表");
            wxlog.Log("初始化服务器设置", "初始化运行计划列表");
            this.AllRunPlannings = InitServerClass.Init_StragPlans <T>();
            LogableClass.ToLog("初始化服务器设置", "初始资产单元列表");
            wxlog.Log("初始化服务器设置", "初始资产单元列表");
            this.AllAssetUnits         = InitServerClass.Init_AssetUnits();
            this.AllNoClosedChanceList = new Dictionary <string, ChanceClass <T> >();
            InitSecurity();
        }