Example #1
0
        public void LoadConfig(string configFilePath)
        {
            ExeConfigurationFileMap configFileMap = new ExeConfigurationFileMap() { ExeConfigFilename = configFilePath };

            System.Configuration.Configuration mappedExeConfiguration = ConfigurationManager.OpenMappedExeConfiguration(configFileMap, ConfigurationUserLevel.None);

            this.configurationSection = (EAppConfigurationSection)mappedExeConfiguration.GetSection(defaultConfigSectionName);
        }
Example #2
0
 public RegularConfigSource() 
 {
     this.appConfigurationSection = new EAppConfigurationSection();
     this.appConfigurationSection.Application = new CurrentApplicationElement();
     this.appConfigurationSection.ObjectContainer = new CurrentObjectContainerElement();
     this.appConfigurationSection.Logger = new CurrentLoggerElement();
     this.appConfigurationSection.PluginContainer = new PluginContainerElement();
     this.appConfigurationSection.PluginContainer.Host = new PluginHostElement();
     this.appConfigurationSection.PluginContainer.Host.ServiceProvider = new SingleProviderElement();
     this.appConfigurationSection.PluginContainer.Host.PluginProvider = new SingleProviderElement();
     this.appConfigurationSection.PluginContainer.PluginRegisters = new PluginRegisterElementCollection();
     this.appConfigurationSection.MiscSettings = new MiscSettingElementCollection();
     this.appConfigurationSection.ResourceManagers = new ResourceElementCollection();
 }
Example #3
0
 private void LoadConfig() 
 {
     this.configurationSection = (EAppConfigurationSection)ConfigurationManager.GetSection(defaultConfigSectionName);
 }