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
Mostra file Open project: RebelCMS/rebelcmsxu5

Public Methods

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

Method Details

GetControllerInstance() public method

public GetControllerInstance ( System.Web.Routing.RequestContext requestContext, Type controllerType ) : IController
requestContext System.Web.Routing.RequestContext
controllerType System.Type
return IController

GetControllerType() public method

public GetControllerType ( System.Web.Routing.RequestContext requestContext, string controllerName ) : Type
requestContext System.Web.Routing.RequestContext
controllerName string
return System.Type