예제 #1
0
        public void Install(IWindsorContainer container, IConfigurationStore store)
        {
            container.Kernel.Resolver.AddSubResolver(new CollectionResolver(container.Kernel, true));

            container.Register(EnsambladosEnExtensiones.BasedOn <IExtension>().WithServiceAllInterfaces());
            container.Register(Classes.FromAssemblyNamed("AguaSB.Pagos.Views").BasedOn <IExtension>().WithServiceAllInterfaces());
            container.Register(Classes.FromAssemblyNamed("AguaSB.Pagos.Views").BasedOn <IView>().WithServiceSelf());
        }
예제 #2
0
        public void Install(IWindsorContainer container, IConfigurationStore store)
        {
            container.Kernel.Resolver.AddSubResolver(new CollectionResolver(container.Kernel));

            container.Register(
                Component.For <IFormateadorExcepciones>()
                .ImplementedBy <FormateadorExcepcionesCompuesto>());

            container.Register(EnsambladosEnExtensiones.BasedOn <IFormateadorExcepciones>().WithServiceAllInterfaces());

            container.Register(
                Classes.FromAssemblyNamed("AguaSB.Interfaz")
                .BasedOn <IFormateadorExcepciones>()
                .WithServiceAllInterfaces());

            container.Register(Component.For <VentanaPrincipalViewModel>());
            container.Register(
                Component.For <IVentana>()
                .ImplementedBy <VentanaPrincipal>());
        }