Tag: Unity 2.0

  • ASP.NET MVC 3 & Unity 2.0: Using XML configuration for design-time configuration

    Introduction In one of my blog post “ASP.NET MVC 3: Dependency injection with Unity 2.0” I explained how to use the Unity 2.0 dependency injection (DI) container in an ASP.NET MVC 3 web application. The example shown in this previous post uses run-time configuration to set up the DI container. A drawback of run-time configuration […]

  • ASP.NET MVC 3: How to use the Unit of Work pattern with Unity 2.0

    Update 2013-04-18 I’ve updated the EndRequest event handler to only commit the changes if no error occurred in the current HTTP request. In one of my last post, I showed how to set up the Unity 2.0 dependency injection container in an ASP.NET MVC 3 web application. In this post, I will show how to […]

  • ASP.NET MVC 3: Dependency injection with Unity 2.0

    Update 2011-07-03: I’ve written a new blog post “ASP.NET MVC 3 & Unity 2.0: Using XML configuration for design-time configuration” that shows how to use XML configuration to set up the Unity dependency injection container. Update 2011-03-28: I’ve fixed an error in the Application_Start method and added a sample Visual Studio 2010 project that includes […]