示例#1
0
        private void ProcessConfigDefaultValue(BaseAppSetting appSetting)
        {
            ConfigTypeFactory typeFactory = FactoryManager.GetCodeFactory(
                ConfigTypeFactory.REG_NAME).Convert <ConfigTypeFactory>();

            Config.RegisterConfig(typeFactory);
            DefaultValueTypeFactory defaultFactory = FactoryManager.GetCodeFactory(
                DefaultValueTypeFactory.REG_NAME).Convert <DefaultValueTypeFactory>();

            DefaultValue.RegisterConfig(defaultFactory);

            ReadDefaultConfig(appSetting);
            ReadConfig(appSetting);
        }
示例#2
0
 public void RegisterConfig(DefaultValueTypeFactory factory)
 {
     factory.EnumableCodePlugIn((regName, type, attribute) => TryAddSection(regName, type, attribute));
 }