public static UserMenuFuncContainer GetInstance()
        {
            ILog log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);

            log.Info("....System Init....");

            lock (typeof(UserMenuFuncContainer))
            {
                if (m_UserMenuFunc == null)
                {
                    UserMenuFuncContainer container = new UserMenuFuncContainer();
                    m_UserMenuFunc = container;

                    //載入快取全部的menu
                    container.AllMenu = new List <MenuFuncVO>();

                    initAllMenu();

                    //載入全部的Role的功能
                    initAllRole();

                    initPathFunc();
                }
                return(m_UserMenuFunc);
            }
        }
        public static UserMenuFuncContainer GetInstance()
        {
            ILog log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
            log.Info("....System Init....");

            lock (typeof(UserMenuFuncContainer))
            {
                if (m_UserMenuFunc == null)
                {
                    UserMenuFuncContainer container = new UserMenuFuncContainer();
                    m_UserMenuFunc = container;

                    //載入快取全部的menu
                    container.AllMenu = new List<MenuFuncVO>();

                    initAllMenu();

                    //載入全部的Role的功能
                    initAllRole();

                    initPathFunc();
                }
                return m_UserMenuFunc;
            }
        }
 /// <summary>
 /// 重新建立Container
 /// </summary>
 public void ResetAll()
 {
     m_UserMenuFunc = null;
     RoleDic        = null;
 }
 /// <summary>
 /// 重新建立Container
 /// </summary>
 public void ResetAll()
 {
     m_UserMenuFunc = null;
     RoleDic = null;
 }