Esempio n. 1
0
        /// <summary>
        /// 获取日志配置节对象
        /// </summary>
        /// <returns>LoggingSection对象</returns>
        /// <remarks>
        /// <code source="..\Framework\TestProjects\DeluxeWorks.Library.Test\\Logging\LoggerTest.cs"
        /// lang="cs" region="Create Logger Test" tittle="获取Logger对象"></code>
        /// </remarks>
        public static LoggingSection GetConfig()
        {
            try
            {
                LoggingSection section = (LoggingSection)ConfigurationBroker.GetSection("LoggingSettings");

                if (section == null)
                {
                    section = new LoggingSection();
                }

                return(section);
            }
            catch (Exception ex)
            {
                if (ex is LogException)
                {
                    throw;
                }
                else
                {
                    throw new LogException("读取日志配置信息错误:" + ex.Message, ex);
                }
            }
        }
Esempio n. 2
0
        public static AUUpdateActionConfigurationSection GetConfig()
        {
            AUUpdateActionConfigurationSection settings =
                (AUUpdateActionConfigurationSection)ConfigurationBroker.GetSection("auUpdateActions") ?? new AUUpdateActionConfigurationSection();

            return(settings);
        }
Esempio n. 3
0
        /// <summary>
        /// 获取配置节点对象
        /// </summary>
        /// <returns></returns>
        protected T GetConfigurationSection()
        {
            T config = ConfigurationBroker.GetSection(ConfigNodeName) as T;

            CoreHelper.ExceptionHelper.TrueThrow(config == null && _allowNullValue == false, "找不到配置节点{0}", ConfigNodeName);
            return(config);
        }
        /// <summary>
        /// 得到邮件配置的信息
        /// </summary>
        /// <returns></returns>
        public static EmailMessageSettings GetConfig()
        {
            EmailMessageSettings settings = (EmailMessageSettings)ConfigurationBroker.GetSection("emailMessageSettings");

            ConfigurationExceptionHelper.CheckSectionNotNull(settings, "emailMessageSettings");

            return(settings);
        }
Esempio n. 5
0
        public static SyncMaterialFileTaskConfigSetting GetConfig()
        {
            var result = (SyncMaterialFileTaskConfigSetting)ConfigurationBroker.GetSection(LockSettingsName);

            ConfigurationExceptionHelper.CheckSectionNotNull(result, LockSettingsName);

            return(result);
        }
Esempio n. 6
0
        public static W3Settings GetSettings()
        {
            W3Settings settings = (W3Settings)ConfigurationBroker.GetSection("w3Settings");

            settings.CheckSectionNotNull("w3Settings");

            return(settings);
        }
        public static ServiceBusSettings GetConfig()
        {
            ServiceBusSettings settings = (ServiceBusSettings)ConfigurationBroker.GetSection("serviceBusSettings");

            settings.CheckSectionNotNull("ServiceBusSettings");

            return(settings);
        }
Esempio n. 8
0
        public static MappingFileSection GetConfig()
        {
            MappingFileSection section = (MappingFileSection)ConfigurationBroker.GetSection(sectionName);

            ConfigurationExceptionHelper.CheckSectionNotNull(section, sectionName);

            return(section);
        }
Esempio n. 9
0
        public static PCServiceClientSettings GetConfig()
        {
            PCServiceClientSettings settings = (PCServiceClientSettings)ConfigurationBroker.GetSection("pcServiceClientSettings");

            ConfigurationExceptionHelper.CheckSectionNotNull(settings, "pcServiceClientSettings");

            return(settings);
        }
Esempio n. 10
0
        public static WfContractsProxySettings GetConfig()
        {
            WfContractsProxySettings settings = (WfContractsProxySettings)ConfigurationBroker.GetSection("wfContractsProxySettings");

            ConfigurationExceptionHelper.CheckSectionNotNull(settings, "wfContractsProxySettings");

            return(settings);
        }
Esempio n. 11
0
        public static AMSDataAdapterSettings GetConfig()
        {
            AMSDataAdapterSettings settings = (AMSDataAdapterSettings)ConfigurationBroker.GetSection("amsDataAdapterSettings");

            settings.CheckSectionNotNull("amsDataAdapterSettings");

            return(settings);
        }
Esempio n. 12
0
        /// <summary>
        /// 得到配置节的信息
        /// </summary>
        /// <returns></returns>
        public static OguPermissionSettings GetConfig()
        {
            OguPermissionSettings settings = (OguPermissionSettings)ConfigurationBroker.GetSection("oguPermissionSettings");

            ConfigurationExceptionHelper.CheckSectionNotNull(settings, "oguPermissionSettings");

            return(settings);
        }
Esempio n. 13
0
        /// <summary>
        /// 获取配置文件中的单点登录信息
        /// </summary>
        /// <returns></returns>
        public static SSOConfigSettings GetConfig()
        {
            SSOConfigSettings section =
                (SSOConfigSettings)ConfigurationBroker.GetSection("ssOConfigSettings");

            ConfigurationExceptionHelper.CheckSectionNotNull(section, "ssOConfigSettings");
            return(section);
        }
Esempio n. 14
0
        /// <summary>
        /// 获取配置文件中的单点登录信息
        /// </summary>
        /// <returns></returns>
        public static LoginNavigationSettings GetConfig()
        {
            LoginNavigationSettings section =
                (LoginNavigationSettings)ConfigurationBroker.GetSection("loginNavigationSettings");

            ConfigurationExceptionHelper.CheckSectionNotNull(section, "loginNavigationSettings");
            return(section);
        }
Esempio n. 15
0
        /// <summary>
        /// 读取配置信息内容
        /// </summary>
        /// <returns></returns>
        public static AccreditSection GetConfig()
        {
            AccreditSection result = (AccreditSection)ConfigurationBroker.GetSection("accreditSection");

            ConfigurationExceptionHelper.CheckSectionNotNull(result, "accreditSection");

            return(result);
        }
        public static PassportIntegrationSettings GetConfig()
        {
            PassportIntegrationSettings settings = (PassportIntegrationSettings)ConfigurationBroker.GetSection("passportIntegrationSettings");

            ConfigurationExceptionHelper.CheckSectionNotNull(settings, "passportIntegrationSettings");

            return(settings);
        }
        public static QQConnectionSettings GetConfig()
        {
            QQConnectionSettings settings = (QQConnectionSettings)ConfigurationBroker.GetSection("qqConnectionSettings");

            ConfigurationExceptionHelper.CheckSectionNotNull(settings, "qqConnectionSettings");

            return(settings);
        }
        /// <summary>
        /// 获得路径配置信息
        /// </summary>
        /// <returns>路径配置信息</returns>
        public static ImagePathConfigSettings GetConfig()
        {
            ImagePathConfigSettings result =
                (ImagePathConfigSettings)ConfigurationBroker.GetSection(imagePathConfigName);

            ConfigurationExceptionHelper.CheckSectionNotNull(result, imagePathConfigName);
            return(result);
        }
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public static WebTranslatorConfigSettings GetConfig()
        {
            WebTranslatorConfigSettings result = (WebTranslatorConfigSettings)ConfigurationBroker.GetSection("webTranslatorConfigSettings");

            ConfigurationExceptionHelper.CheckSectionNotNull(result, "webTranslatorConfigSettings");

            return(result);
        }
Esempio n. 20
0
        /// <summary>
        /// 得到配置节
        /// </summary>
        /// <returns></returns>
        public static RolesDefineConfig GetConfig()
        {
            RolesDefineConfig config = (RolesDefineConfig)ConfigurationBroker.GetSection(configNodeName);

            ConfigurationExceptionHelper.CheckSectionNotNull(config, configNodeName);

            return(config);
        }
Esempio n. 21
0
        /// <summary>
        /// 获取配置文件中的数据库连接(ConnectionManager)集合
        /// </summary>
        /// <returns></returns>
        public static ConnectionManagerConfigurationSection GetConfig()
        {
            ConnectionManagerConfigurationSection section =
                (ConnectionManagerConfigurationSection)ConfigurationBroker.GetSection("connectionManager");

            ConfigurationExceptionHelper.CheckSectionNotNull(section, "connectionManager");

            return(section);
        }
Esempio n. 22
0
        public static CFCAControlConfigSetting GetConfig()
        {
            CFCAControlConfigSetting result =
                (CFCAControlConfigSetting)ConfigurationBroker.GetSection(LockSettingsName);

            ConfigurationExceptionHelper.CheckSectionNotNull(result, LockSettingsName);

            return(result);
        }
        /// <summary>
        /// 读取单点登录服务配置
        /// </summary>
        /// <returns>认证服务器配置信息</returns>
        /// <remarks>
        /// <code source="..\Framework\TestProjects\DeluxeWorks.Library.Passport.Test\ConfigurationTest.cs" region="SignInConfigTest" lang="cs" title="获取认证服务端配置信息" />
        /// </remarks>
        public static PassportSignInSettings GetConfig()
        {
            PassportSignInSettings result =
                (PassportSignInSettings)ConfigurationBroker.GetSection("passportSignInSettings");

            ConfigurationExceptionHelper.CheckSectionNotNull(result, "passportSignInSettings");

            return(result);
        }
        /// <summary>
        /// 单点登录客户端应用配置信息
        /// </summary>
        /// <returns>AuthenticationSection对象</returns>
        public static AuthenticationServerSection GetConfig()
        {
            AuthenticationServerSection result =
                (AuthenticationServerSection)ConfigurationBroker.GetSection("authenticationServer");

            ConfigurationExceptionHelper.CheckSectionNotNull(result, "authenticationServer");

            return(result);
        }
Esempio n. 25
0
        public static RelativeLinkControlConfigSetting GetConfig()
        {
            var result =
                (RelativeLinkControlConfigSetting)ConfigurationBroker.GetSection(LockSettingsName);

            result.CheckSectionNotNull(LockSettingsName);

            return(result);
        }
        public static FileProcessDescriptorSettings GetConfig()
        {
            FileProcessDescriptorSettings settings =
                (FileProcessDescriptorSettings)ConfigurationBroker.GetSection("fileProcessDescriptorSettings");

            ConfigurationExceptionHelper.CheckSectionNotNull(settings, "fileProcessDescriptorSettings");

            return(settings);
        }
        public static SAPFileMapping GetConfig()
        {
            SAPFileMapping result = (SAPFileMapping)ConfigurationBroker.GetSection("DynamicsFiledTypesMapping");

            if (result == null)
            {
                result = new SAPFileMapping();
            }
            return(result);
        }
Esempio n. 28
0
        //需要加锁时使用
        //private object syncRoot = new object();

        public static AuthenticateDirSettings GetConfig()
        {
            AuthenticateDirSettings settings = (AuthenticateDirSettings)ConfigurationBroker.GetSection("authenticateDirSettings");

            if (settings == null)
            {
                settings = new AuthenticateDirSettings();
            }
            return(settings);
        }
        public static ConvertUepFiledValueMapping GetConfig()
        {
            ConvertUepFiledValueMapping result = (ConvertUepFiledValueMapping)ConfigurationBroker.GetSection("ConvertFiledValuesMapping");

            if (result == null)
            {
                result = new ConvertUepFiledValueMapping();
            }
            return(result);
        }
        public static WfServiceInvokerSettings GetConfig()
        {
            WfServiceInvokerSettings settings = (WfServiceInvokerSettings)ConfigurationBroker.GetSection("wfServiceInvokerSettings");

            if (settings == null)
            {
                settings = new WfServiceInvokerSettings();
            }

            return(settings);
        }