protected override IController GetControllerInstance(System.Web.Routing.RequestContext requestContext, Type controllerType)
        {
            if (controllerType != null && container.IsRegistered(controllerType))
            {
                return((IController)container.Resolve(controllerType));
            }

            return(base.GetControllerInstance(requestContext, controllerType));
        }
Esempio n. 2
0
 public static T Resolve <T>()
 {
     return(baseContainer.Resolve <T>());
 }
Esempio n. 3
0
 public static T Resolve <T>()
 {
     return(_container == null ? default(T) : _container.Resolve <T>());
 }