public Bootstrap Start() { if(Container == null) { throw new BootstrapException("A container is required!"); } if (StructuremapRegistrar == null){ throw new BootstrapException("the structure map configuration registrar is required!"); } if (Logger == null) { throw new BootstrapException("Some kind of logger is required!"); } var dependencyRegistrar = new DependencyRegistrar(Container, StructuremapRegistrar, AdditionalRegistries); _bootstraper = new Bootstrapper(dependencyRegistrar, Logger); _bootstraper.Bootstrap(); return this; }
public Bootstrap Start() { if (Container == null) { throw new BootstrapException("A container is required!"); } if (StructuremapRegistrar == null) { throw new BootstrapException("the structure map configuration registrar is required!"); } if (Logger == null) { throw new BootstrapException("Some kind of logger is required!"); } var dependencyRegistrar = new DependencyRegistrar(Container, StructuremapRegistrar, AdditionalRegistries); _bootstraper = new Bootstrapper(dependencyRegistrar, Logger); _bootstraper.Bootstrap(); return(this); }