Esempio n. 1
0
        public static IWindsorContainer ConfigureWindsor(HttpConfiguration configuration)
        {
            var container = Create();
            container.Kernel.Resolver.AddSubResolver(new CollectionResolver(container.Kernel, true));
            var dependencyResolver = new WindsorDependencyResolver(container);
            configuration.DependencyResolver = dependencyResolver;

            return container;
        }  
Esempio n. 2
0
        public static IWindsorContainer ConfigureWindsor(HttpConfiguration configuration)
        {
            var container = Create();

            container.Kernel.Resolver.AddSubResolver(new CollectionResolver(container.Kernel, true));
            var dependencyResolver = new WindsorDependencyResolver(container);

            configuration.DependencyResolver = dependencyResolver;

            return(container);
        }