Sponsored By Aspose - File Format APIs for .NET

Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more!

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

This entry was posted in Featured. Bookmark the permalink. Follow any comments here with the RSS feed for this post.

5 Responses to Unity IoC and ASP.NET MVC Framework Screencast

  1. We’ll get there. I’ve got to get Entlib 4 out the door next.

    Also, you should update your tutorials. IUnityParentContainer went away a couple of drops ago; CreateChildContainer is now available directly off IUnityContainer.

  2. David Hayden says:

    @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 :)

  3. 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

  4. Torkel says:

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

  5. Cole B says:

    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.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>