Implement MVC Turbine in 3 Easy Steps

  • Reference MVC Turbine within your new or existing project.
  • Have your Global.asax inherit the TurbineApplication and wire up your Service Locator implementation.
    using MvcTurbine;
    using MvcTurbine.ComponentModel;
    using MvcTurbine.Windsor;

    public class MvcApplication : TurbineApplication
        static MvcApplication()
            // Register the IoC that you want Mvc Turbine to use!
            // Everything else is wired automatically
            ServiceLocatorManager.SetLocatorProvider(() => new WindsorServiceLocator());
  • Press F5 to run it!

Last edited Sep 13, 2010 at 9:30 PM by jglozano, version 7


thoughtcriminal Sep 13, 2010 at 7:12 PM 
I believe the constructor be static in this sample.

vmrocha Jun 29, 2010 at 1:26 AM 
"Cannot resolve image macro, invalid image name or id."

troyehall Jun 23, 2010 at 6:03 PM 
The third image is not showing (as of June 23, 2010) - broken URL.

SteveGentile Dec 3, 2009 at 3:21 PM 
Question: Typically I have controller with injected services, then services with injected repositories (with MVC and Windsor). I understand this takes care of injecting the controllers, could you show also where you need to register other assemblies/classes into the IoC using the MVCTurbine.Windsor ?