Welcome to Manicprogrammer Sign in | Join | Help

Asp.Net MVC Release 3

Yes, I am late in my blog reading, but I gotta tell you guys, after reading Scott Gu's blog post on Asp.Net MVC I was more impressed than I imagined I would be (read it here).

There are so many features I'd love to have at the projects I'm working on right now. I'm even considering converting a MonoRail project I have into an Asp.Net MVC one.

One thing I couldn't figure out yet is this new MVC integration with IoC Containers.

I mean, when using MonoRail the integration with Windsor makes it easy to resolve controllers from the container, which means I can just ignore the dependencies, and things just work.

So if my ControllerA depends on ServiceA, ServiceB and RepositoryA, I just declare variables for those three dependencies and initialize them in the constructor. Everything works as expected.

How would I do that in the new Asp.Net MVC Framework.

Cheers,

#158

Published Saturday, June 21, 2008 11:04 PM by heynemann
Filed under , , , ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# The ASP.NET MVC Information Portal

Saturday, June 21, 2008 11:23 PM by The ASP.NET MVC Information Portal

# re: Asp.Net MVC Release 3

Sunday, June 22, 2008 6:57 PM by Robin Clowers

Check out <a href="http://www.codeplex.com/MVCContrib">MCV Contrib</a>, it has controller factories for four popular IoC containers, Windsor included.


Enter the text you see in the image:

Leave a Comment

(required) 
required 
(required)