コード例 #1
0
        public static ISettingsBuilderFactory AddAppSettings(this ISettingsBuilderFactory target, NameFormatter action)
        {
            if (action == null)
            {
                throw new ArgumentNullException(nameof(action));
            }
            target.AddSectionBinder(new AppSettingsBinder()
            {
                VariableNameFormatter = action
            });

            return(target);
        }
コード例 #2
0
        public static ISettingsBuilderFactory AddAppSettings(this ISettingsBuilderFactory target)
        {
            target.AddSectionBinder(new AppSettingsBinder());

            return(target);
        }
コード例 #3
0
 public void AddSectionBinder(ISectionBinder sectionBinder)
 {
     _settingsBuilderFactory.AddSectionBinder(sectionBinder);
 }