private Dispatch() { // 加载所有的Action try{ AllActClass aac = new AllActClass(); foreach (IAction act in aac.dic.Values) { MethodInfo[] ms = act.GetType().GetMethods(); foreach (MethodInfo m in ms) { ActionBean bean = ActionBean.newInstance(act, m); if ((bean != null) && (!actions.ContainsKey(bean.actId))) { actions.Add(bean.actId, bean); } } } } catch (Exception e) { ConsoleEx.DebugLog(e.ToString()); } // 初始化线程池 ThreadPool.LoadConfig(); }