ASP.Net MVC Framework - Create your own IControllerFactory and use Spring.Net
Posted by: Fredrik Norméns Blog,
on 17 Nov 2007 |
View original | Bookmarked: 0 time(s)
In this post I’m going to show you how we can easy create our own IControllerFactory for the ASP.Net MVC Framework and use Spring.Net to create our Controllers. I will in this post also use the Spring.Net Dependency Injection support to pass a Repository that should be used by our Controller.To create a ControllerFactory we need to implement the IControllerFactory interface. This interface has one method, CreateController. This method takes two arguments a RequestContext and the Type of the...