Beispiel #1
0
        /// <summary>
        /// 获取配置文件中的单点登录信息
        /// </summary>
        /// <returns></returns>
        public static SSOConfigSettings GetConfig()
        {
            SSOConfigSettings section =
                (SSOConfigSettings)ConfigurationBroker.GetSection("ssOConfigSettings");

            ConfigurationExceptionHelper.CheckSectionNotNull(section, "ssOConfigSettings");
            return(section);
        }
        public static QQConnectionSettings GetConfig()
        {
            QQConnectionSettings settings = (QQConnectionSettings)ConfigurationBroker.GetSection("qqConnectionSettings");

            ConfigurationExceptionHelper.CheckSectionNotNull(settings, "qqConnectionSettings");

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

            ConfigurationExceptionHelper.CheckSectionNotNull(settings, "passportIntegrationSettings");

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

            ConfigurationExceptionHelper.CheckSectionNotNull(result, "webTranslatorConfigSettings");

            return(result);
        }
        /// <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 EmailMessageSettings GetConfig()
        {
            EmailMessageSettings settings = (EmailMessageSettings)ConfigurationBroker.GetSection("emailMessageSettings");

            ConfigurationExceptionHelper.CheckSectionNotNull(settings, "emailMessageSettings");

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

            ConfigurationExceptionHelper.CheckSectionNotNull(section, "loginNavigationSettings");
            return(section);
        }
Beispiel #8
0
        public static SyncMaterialFileTaskConfigSetting GetConfig()
        {
            var result = (SyncMaterialFileTaskConfigSetting)ConfigurationBroker.GetSection(LockSettingsName);

            ConfigurationExceptionHelper.CheckSectionNotNull(result, LockSettingsName);

            return(result);
        }
        public static MossServerInfoConfigurationSettings GetConfig()
        {
            MossServerInfoConfigurationSettings result = (MossServerInfoConfigurationSettings)ConfigurationBroker.GetSection("mossServerInfoConfigSettings");

            ConfigurationExceptionHelper.CheckSectionNotNull(result, "mossServerInfoConfigSettings");

            return(result);
        }
Beispiel #10
0
        public static MappingFileSection GetConfig()
        {
            MappingFileSection section = (MappingFileSection)ConfigurationBroker.GetSection(sectionName);

            ConfigurationExceptionHelper.CheckSectionNotNull(section, sectionName);

            return(section);
        }
Beispiel #11
0
        /// <summary>
        /// 读取配置信息内容
        /// </summary>
        /// <returns></returns>
        public static AccreditSection GetConfig()
        {
            AccreditSection result = (AccreditSection)ConfigurationBroker.GetSection("accreditSection");

            ConfigurationExceptionHelper.CheckSectionNotNull(result, "accreditSection");

            return(result);
        }
Beispiel #12
0
        public static PCServiceClientSettings GetConfig()
        {
            PCServiceClientSettings settings = (PCServiceClientSettings)ConfigurationBroker.GetSection("pcServiceClientSettings");

            ConfigurationExceptionHelper.CheckSectionNotNull(settings, "pcServiceClientSettings");

            return(settings);
        }
Beispiel #13
0
        public static WfContractsProxySettings GetConfig()
        {
            WfContractsProxySettings settings = (WfContractsProxySettings)ConfigurationBroker.GetSection("wfContractsProxySettings");

            ConfigurationExceptionHelper.CheckSectionNotNull(settings, "wfContractsProxySettings");

            return(settings);
        }
Beispiel #14
0
        /// <summary>
        /// 得到配置节
        /// </summary>
        /// <returns></returns>
        public static RolesDefineConfig GetConfig()
        {
            RolesDefineConfig config = (RolesDefineConfig)ConfigurationBroker.GetSection(configNodeName);

            ConfigurationExceptionHelper.CheckSectionNotNull(config, configNodeName);

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

            ConfigurationExceptionHelper.CheckSectionNotNull(settings, "oguPermissionSettings");

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

            ConfigurationExceptionHelper.CheckSectionNotNull(result, "authenticationServer");

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

            ConfigurationExceptionHelper.CheckSectionNotNull(section, "connectionManager");

            return(section);
        }
Beispiel #18
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);
        }
        public static FileProcessDescriptorSettings GetConfig()
        {
            FileProcessDescriptorSettings settings =
                (FileProcessDescriptorSettings)ConfigurationBroker.GetSection("fileProcessDescriptorSettings");

            ConfigurationExceptionHelper.CheckSectionNotNull(settings, "fileProcessDescriptorSettings");

            return(settings);
        }