Geeks With Blogs


Len Smith's Facebook profile

nIgnuSharp.NET //len smith is a software developer in ann arbor, mi December 2008 Entries
Frictionless IOC in ASP.NET MVC with Windsor/Binsor
For the past four months my controllers have had two constructors: one that received my dependencies and one parameterless that called Windsor directly, because parameterless constructors are a requirement for the default MVC ControllerFactory. (These constructors did have a huge //HACK comment on them.) Wiring up IOC with zero friction was quite simple. First, we need to make a new ControllerFactory. In it, we will ask Windsor to give us the controller. public class CastleWindsorControllerFactory ......

Posted On Monday, December 15, 2008 11:59 AM

Copyright © Len Smith | Powered by: