Example #1
0
        public static IToolContainer Container(Action <IConfigurator <IToolContainer> > setupAction)
        {
            var configurator = new Configurator <IToolContainer>();

            setupAction(configurator);
            return(configurator.Build());
        }
Example #2
0
        public static IRegistrator Component(this IRegistrator registrator, Action <IConfigurator <IRegistrator> > setup)
        {
            var configurator = new Configurator <IRegistrator>();

            configurator.Setup(c => c(registrator));
            setup(configurator);
            return(configurator.Build());
        }