Windsor and MVC4

2012-10-11 Thread Wayne Douglas
Hi Does anyone have any pointers to getting the container wired up in MVC4? I also understand the process differs slightly for web and web api? Googling seems to come up with controller factories which to my understanding are not necessary in mvc 4? -- Cheers, w:// -- You received this

Re: Windsor and MVC4

2012-10-11 Thread Serdar B.
It would be really nice if there is another tobeseen example for mvc4 :) * including general exception interceptor Serdar -- serdarb.com http://www.serdarb.com On Thu, Oct 11, 2012 at 11:43 AM, Wayne Douglas codingvi...@googlemail.comwrote: Hi Does anyone have any pointers to getting the

Re: Windsor and MVC4

2012-10-11 Thread Krzysztof Kozmic
I don't think it would be much different from MVC3... -- Krzysztof Kozmic On Thursday, 11 October 2012 at 6:49 PM, Serdar B. wrote: It would be really nice if there is another tobeseen example for mvc4 :) * including general exception interceptor Serdar-- serdarb.com

Re: Windsor and MVC4

2012-10-11 Thread Wayne Douglas
so i'd still need a controller factory and all that? I thought the whole point was that they had integrated it all better so we won't need all that? With the whole DependencyResolver thing no? On Thu, Oct 11, 2012 at 9:50 AM, Krzysztof Kozmic krzysztof.koz...@gmail.com wrote: I don't think it

Re: Windsor and MVC4

2012-10-11 Thread Wayne Douglas
i guess dependancyresolver is not the way to go: http://blog.ploeh.dk/2012/09/28/DependencyInjectionAndLifetimeManagementWithASPNETWebAPI.aspx On Thu, Oct 11, 2012 at 9:52 AM, Wayne Douglas codingvi...@googlemail.com wrote: so i'd still need a controller factory and all that? I thought the

Re: Windsor and MVC4

2012-10-11 Thread Merijn de Jonge
This is what I did: * Create the following contorller factory: public class WindsorControllerFactory : DefaultControllerFactory { private readonly IKernel _container; public WindsorControllerFactory(IKernel container) { _container = container;

Re: Windsor and MVC4

2012-10-11 Thread Patrick Steele
And don't forget Mark's follow-up post on doing that technique with Windsor: http://blog.ploeh.dk/2012/10/03/DependencyInjectionInASPNETWebAPIWithCastleWindsor.aspx --- Patrick Steele http://weblogs.asp.net/psteele On Thu, Oct 11, 2012 at 4:55 AM, Wayne Douglas codingvi...@googlemail.com