David Hayden [MVP C#]

Sponsors

The Lounge

News

  • CodeBetter.Com Home

Other Links

Teas

Patterns & Practices

Florida .NET Developer

Book Reviews

Tampa ASP.NET MVC Developer Group

Advertisement

Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
Unity IoC and ASP.NET MVC Framework Screencast

Unity IoC and ASP.NET MVC FrameworkBased on several requests, I created a new screencast that shows one step-by-step how to add the Unity IoC Container from Microsoft Patterns & Practices to an ASP.NET MVC Web Application to create controllers and inject their dependencies.

Unity IoC - Dependency Injection in ASP.NET MVC Framework Screencast

You can also catch the first Unity Screencast that shows about a dozen common usages of Unity as well as briefly discusses the use of Unity using MVC and Model-View-Presenter:

Unity Dependency Injection IoC Screencast

 

Here are some links to sample code on Unity regarding what you see in the screencasts:

 

Hope this helps.

Dave


Posted Fri, Apr 4 2008 10:10 AM by David Hayden
Filed under:

[Advertisement]

Comments

Cole B wrote re: Unity IoC and ASP.NET MVC Framework Screencast
on Fri, Apr 4 2008 11:22 AM

Hey great job on the screen cast. Pretty slick use there for the dependency injection and ControllerFactory. Can't wait to start using these items in my daily programming life.

Torkel wrote re: Unity IoC and ASP.NET MVC Framework Screencast
on Fri, Apr 4 2008 12:28 PM

Nice cast, I prefer castle windsor. It is good that the ASP.NET MVC framework is not dependent on any one IoC container.

Chris Tavares wrote re: Unity IoC and ASP.NET MVC Framework Screencast
on Fri, Apr 4 2008 6:54 PM

One minor nit at the beginning: If you install the block with the MSI, the Unity assemblies are available on the .NET tab. You don't need to browse for them.

-Chris

David Hayden wrote re: Unity IoC and ASP.NET MVC Framework Screencast
on Fri, Apr 4 2008 9:11 PM

@Chris,

Good to know. I didn't realize that. I'm waiting for your webcast so I can pick up even more pointers, especially on extensibility :)

Christopher Steen wrote Link Listing - April 6, 2008
on Sun, Apr 6 2008 11:55 PM

Link Listing - April 6, 2008

Christopher Steen wrote Link Listing - April 6, 2008
on Sun, Apr 6 2008 11:55 PM

ASP.NET Client Side Templating with jQuery [Via: Rick Strahl ] WPF Unwanted Multiple ClientBin Sub...

indomitablehef.com » Blog Archive » Unity wrote indomitablehef.com » Blog Archive » Unity
on Mon, Apr 7 2008 8:37 AM

Pingback from  indomitablehef.com  » Blog Archive   » Unity

Matthew Podwysocki's Blog wrote Unity 1.0 Released into the Wild
on Mon, Apr 7 2008 8:42 AM

As Chris Tavares mentioned in his blog , Unity 1.0 has been released a couple of days earlier than the