public IServiceConfigurator For(Type[] types) { var configurator = new ServiceConfigurator(); configurator.Setup(c => c(new ServiceContext { For = types })); configurator.ConfigureBuild(s => this.serviceRegistration.Execute(s)); registrationActions.Add(() => configurator.Build()); return(configurator); }