public static IToolContainer Container(Action <IConfigurator <IToolContainer> > setupAction) { var configurator = new Configurator <IToolContainer>(); setupAction(configurator); return(configurator.Build()); }
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()); }