Configuring dependency injection

The ServiceLocator is a very powerful dependency injection class. To allow the ASP.NET MVC to use the ServiceLocator as dependency resolver, simply call the following in the global.asax class:

Catel.Mvc.DependencyInjectionConfig.RegisterServiceLocatorAsDependencyResolver();