This will automatically register all the controllers from the assembly of the DependencyInjectionContainer class. Regardless of which controllers have dependencies or not.
Register( AllTypes.Of<IController>() .FromAssembly(typeof(DependencyInjectionContainer).Assembly) .Configure(c => c.LifeStyle.Transient) );
source share