public IResolvingContainer Bootstrap()
        {
            var container = new WindsorContainer();

            container.RegisterAllOneToOneResolutionsAsTransientFrom(GetType().Assembly);
            return(new ResolvingContainer(container));
        }
Ejemplo n.º 2
0
        public static IWindsorContainer Bootstrap()
        {
            var container = new WindsorContainer();

            container.Register(Component.For <IINIFile>()
                               .UsingFactoryMethod(LoadIniFromApplicationFolder)
                               .LifestyleTransient());
            container.RegisterSingleton <IHostBlockCoordinator, HostBlockCoordinator>();
            container.RegisterSingleton <ISimpleLoggerFacade, SimpleLoggerFacade>();
            container.RegisterAllOneToOneResolutionsAsTransientFrom(typeof(WindsorBootstrapper).Assembly);
            return(container);
        }