ASP.NET MVC 3 Dependency Injection |
Index |
Hands-On Lab
ASP.NET MVC � Dependency Injection
Lab version:1.1.0
Last updated:10/24/2011
Contents
Overview
Exercise 1: Injecting a Controller
Task 1 � Running the Application
Task 2 � Including Unity into MvcMusicStore Solution
Task 3 � Adding a Unity Controller Factory
Task 4 � Registering Unity in Global.asax.[cs|vb] Application_Start
Task 5 � Running the Application
Exercise 2: Injecting a View
Task 1 � Creating a View that Consumes a Service
Task 2 � Including a Custom Dependency Resolver and a Custom View Page Activator
Task 3 � Registering for Dependency Injection in Global.asax.[cs|vb] Application_Start
Task 4 � Running the Application
Exercise 3: Injecting Action Filters
Task 1 � Including the Tracking Filter in the Solution
Task 2 � Registering and Enabling the Filter
Task 3 � Running the Application