protected override void ConfigureApplicationContainer(IWindsorContainer existingContainer)
        {
            base.ConfigureApplicationContainer(existingContainer);


            // Add the Array Resolver, so we can take dependencies on T[]
            // while only registering T.
            existingContainer.Kernel.Resolver.AddSubResolver(new ArrayResolver(existingContainer.Kernel));

            var loggerInstaller = new LoggerInstaller();

            loggerInstaller.Install(existingContainer,
                                    null);

            var loaderInstaller = new ProjectComponentLoaderInstaller();

            loaderInstaller.Install(existingContainer,
                                    null);

            existingContainer.Install(FromAssembly.Containing(typeof(Installer)));
            existingContainer.Install(FromAssembly.Containing(typeof(MicroServices.Days.Nancy.Installer)));
            existingContainer.Install(FromAssembly.Containing(typeof(MicroServices.Doctors.Nancy.Installer)));
            existingContainer.Install(FromAssembly.Containing(typeof(MicroServices.DoctorsSlots.Nancy.Installer)));
            existingContainer.Install(FromAssembly.Containing(typeof(MicroServices.Slots.Nancy.Installer)));
        }
        protected override void ConfigureApplicationContainer(IWindsorContainer existingContainer)
        {
            base.ConfigureApplicationContainer(existingContainer);

            var loggerInstaller = new LoggerInstaller();
            loggerInstaller.Install(existingContainer,
                                    null);

            var loaderInstaller = new ProjectComponentLoaderInstaller();
            loaderInstaller.Install(existingContainer,
                                    null);

            existingContainer.Install(FromAssembly.Containing(typeof ( Installer )));
            existingContainer.Install(FromAssembly.Containing(typeof ( Doctors.Nancy.Installer )));
        }
Exemple #3
0
        protected override void ConfigureApplicationContainer(IWindsorContainer existingContainer)
        {
            base.ConfigureApplicationContainer(existingContainer);

            var loggerInstaller = new LoggerInstaller();

            loggerInstaller.Install(existingContainer,
                                    null);

            var loaderInstaller = new ProjectComponentLoaderInstaller();

            loaderInstaller.Install(existingContainer,
                                    null);

            existingContainer.Install(FromAssembly.Containing(typeof(Selkie.Windsor.Installer)));
            existingContainer.Install(FromAssembly.Containing(typeof(Installer)));
        }
        protected override void ConfigureApplicationContainer(IWindsorContainer existingContainer)
        {
            base.ConfigureApplicationContainer(existingContainer);

            var loggerInstaller = new LoggerInstaller();

            loggerInstaller.Install(existingContainer,
                                    null);

            var loaderInstaller = new ProjectComponentLoaderInstaller();

            loaderInstaller.Install(existingContainer,
                                    null);

            existingContainer.Install(FromAssembly.Containing(typeof(Selkie.Windsor.Installer)));
            existingContainer.Install(FromAssembly.Containing(typeof(FlightAssignedToGate.Installer)));
            existingContainer.Install(FromAssembly.Containing(typeof(Installer)));

            PopulateRepositoryFlightAssignedToGate(existingContainer);

            // todo expose repository for testing
        }