C# Class Rebel.Cms.Web.Mvc.ControllerFactories.RenderControllerFactory.OverridenDefaultControllerFactory

By default, DefaultControllerFactory only exposes IControllerFactory.CreateController which throws an exception if the controller is not found. Since we want to try creating a controller, and then fall back to RebelController if one isn't found, this nested class changes the visibility of DefaultControllerFactory's internal methods in order to not have to rely on a try-catch.
Inheritance: System.Web.Mvc.DefaultControllerFactory
Afficher le fichier Open project: RebelCMS/rebelcmsxu5

Méthodes publiques

Méthode Description
GetControllerInstance ( System.Web.Routing.RequestContext requestContext, Type controllerType ) : IController
GetControllerType ( System.Web.Routing.RequestContext requestContext, string controllerName ) : Type

Method Details

GetControllerInstance() public méthode

public GetControllerInstance ( System.Web.Routing.RequestContext requestContext, Type controllerType ) : IController
requestContext System.Web.Routing.RequestContext
controllerType System.Type
Résultat IController

GetControllerType() public méthode

public GetControllerType ( System.Web.Routing.RequestContext requestContext, string controllerName ) : Type
requestContext System.Web.Routing.RequestContext
controllerName string
Résultat System.Type