ASP.NET MVC Integration Guide
Simple Injector contains Simple Injector MVC Integration Quick Start NuGet package
. If you're not using NuGet, you can include the SimpleInjector.Integration.Web.Mvc.dll
in your MVC application, which is part of the standard CodePlex download.
The following code snippet shows how to use the use the integration package (note that the quick start package this code for you).
// You'll need to include the following namespaces
// This is the Application_Start event from the Global.asax file.
protected void Application_Start(object sender, EventArgs e)
// Create the container as usual.
var container = new Container();
// Register your types, for instance:
// This is an extension method from the integration package.
// This is an extension method from the integration package as well.