예제 #1
0
        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;
        }
예제 #2
0
        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);
        }