I created a final screencast focusing on Unity, called-
As promised in the previous screencast:
I wanted to show at least one other way to accomplish dependency injection with Unity in ASP.NET Webforms Web Pages without requiring base classes for pages, masterpages, usercontrols, etc. This example highlights the use of a custom HttpModule and subscribing to the PreRequestHandlerExecute Event. This is a very common method that I mentioned being used in the older Web Client Software Factory v1.0 and 1.1 as well as currently in Autofac via the DependencyInjectionModule in Autofac.Integration.Web. I am sure it is being used numerous other places as well.
During the screencast I discuss two other dependency injection tools, Autofac and Ninject, which are wonderful IoC Containers that are open-source, lightweight, and easy-to-use as well as offer some wonderful integrations with Webforms, ASP.NET MVC Framework, Winforms, WCF, and various other 3rd party open-source libraries like Castle DynamicProxy2, Log4Net, etc.
During the screencast I show a custom HttpModule, NinjectHttpModule, that I created and added to my copy of Ninject.Framework.Web to offer this same functionality with Ninject. Using inspiration from both Autofac and Ninject, I then show a Unity.Integrations.Web Assembly that uses techniques from both Autofac and Ninject to provide this functionality with Unity.
In addition to Unity, I highly recommend you check out Autofac and Ninject. Download the source code and binaries, check out the examples on the wiki's, and get involved in the discussion groups:
You can find links to samples I have created using Autofac and Ninject in the screencast show notes.
Hope you enjoy the screencast.