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); }
public void RegisterConfig(DefaultValueTypeFactory factory) { factory.EnumableCodePlugIn((regName, type, attribute) => TryAddSection(regName, type, attribute)); }