Example #1
0
 private static void inAdd(string key, Page.Page instance)
 {
     if (instance == null) { new Exception(string.Format("创建页面类缓存失败:{0}", key)); }
     if (!_list.ContainsKey(key)) {
         _list.Add(key, instance);
     }
 }
Example #2
0
 public static Control.ControlAnalyze GetInstance(ThreadEntity currentTheadEntity, Page.PageAbstract currentPageClass, string map, bool useInnerMark = false)
 {
     if (currentPageClass.WebSetting.DebugMode) return new Control.ControlAnalyze(currentTheadEntity, map, useInnerMark);
     string _key = string.Concat(currentPageClass.WebSetting.Name, currentTheadEntity.URLItem.PageClassName, map);
     if (!_controlCenter.ContainsKey(_key)) {
         _controlCenter.Add(_key, new Control.ControlAnalyze(currentTheadEntity, map, useInnerMark));
     }
     return _controlCenter[_key];
 }