In fact, you do not need an IoC container to configure the basic mapping settings for Glass.
Instead, configure registration for ISitecoreContext and the custom MVC factory controller, overriding the necessary ReleaseController and GetControllerInstance .
My Unity is a little rusty, but something like this (you may find something simpler):
IUnityContainer container = new UnityContainer() container.RegisterType<ISitecoreContext, SitecoreContext>(new HierarchicalLifetimeManager(), new InjectionFactory(x => new SitecoreContext()));
Jim noellsch
source share