Class RenderControllerFactory
A controller factory for the render pipeline of Umbraco. This controller factory tries to create a controller with the supplied name, and falls back to UmbracoController if none was found.
Namespace: Umbraco.Web.Mvc
Assembly: Umbraco.Web.dll
Syntax
public class RenderControllerFactory : UmbracoControllerFactory, IFilteredControllerFactory
Methods
View SourceCanHandle(RequestContext)
Determines whether this instance can handle the specified request.
Declaration
public override bool CanHandle(RequestContext request)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Routing.RequestContext | request | The request. |
Returns
Type | Description |
---|---|
System.Boolean |
|
CreateController(RequestContext, String)
Creates the controller
Declaration
public override IController CreateController(RequestContext requestContext, string controllerName)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Routing.RequestContext | requestContext | |
System.String | controllerName |
Returns
Type | Description |
---|---|
IController |
Remarks
We always set the correct ActionInvoker on our custom created controller, this is very important for route hijacking!