Пример #1
0
        /// <summary>
        /// 得到配置
        /// </summary>
        /// <returns></returns>
        public static PrincipalSettings GetConfig()
        {
            PrincipalSettings result = (PrincipalSettings)ConfigurationBroker.GetSection("principalSettings");

            if (result == null)
                result = new PrincipalSettings();

            return result;
        }
Пример #2
0
        /// <summary>
        /// 得到配置
        /// </summary>
        /// <returns></returns>
        public static PrincipalSettings GetConfig()
        {
            PrincipalSettings result = (PrincipalSettings)ConfigurationBroker.GetSection("principalSettings");

            if (result == null)
            {
                result = new PrincipalSettings();
            }

            return(result);
        }