public void LoadConfig(string configFilePath) { ExeConfigurationFileMap configFileMap = new ExeConfigurationFileMap(); configFileMap.ExeConfigFilename = configFilePath; System.Configuration.Configuration mappedExeConfiguration = ConfigurationManager.OpenMappedExeConfiguration(configFileMap, ConfigurationUserLevel.None); this.configurationSection = (EAppConfigurationSection)mappedExeConfiguration.GetSection(defaultConfigSectionName); }
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(); }
private void LoadConfig() { this.configurationSection = (EAppConfigurationSection)ConfigurationManager.GetSection(defaultConfigSectionName); }