Ejemplo n.º 1
0
        public static SettingsBuilder CreateBuilder(Action <ISettingsBuilderFactory> buildAction)
        {
            if (buildAction == null)
            {
                throw new ArgumentNullException(nameof(buildAction));
            }

            var factory = new SettingsBuilderFactory();

            buildAction(factory);

            return(new SettingsBuilder(factory.Options, factory.Binders));
        }
Ejemplo n.º 2
0
        public static SettingsBuilder CreateBuilder()
        {
            var factory = new SettingsBuilderFactory();

            return(new SettingsBuilder(factory.Options, factory.Binders));
        }