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; }
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); }