Beispiel #1
0
        private void InitPaths()
        {
            List <string> roots = new List <string>();

            for (int i = 0; i < strategyInfos.Count; i++)
            {
                StrategyInfo strategyInfo = strategyInfos[i];
                string       path         = strategyInfo.StrategyClassType.Namespace;
                AddSubStrategies(strategyInfo, path);
                string root = AddPathLoop(path);
                if (!roots.Contains(root))
                {
                    roots.Add(root);
                }
            }
            for (int i = 0; i < roots.Count; i++)
            {
                rootPaths.Add(GetRootPath(roots[i]));
            }
        }
Beispiel #2
0
 private void AddStrategyInfo(StrategyInfo strategyInfo)
 {
     strategyInfos.Add(strategyInfo);
     dic_Id_StrategyInfo.Add(strategyInfo.StrategyID, strategyInfo);
     dic_Type_StrategyInfo.Add(strategyInfo.StrategyClassType, strategyInfo);
 }