Class ControllerTypeControllerFactory
Controller factory, which tries to resolve the controller type from the System.Web.Routing.RequestContext.
Inheritance
System.Object
ControllerTypeControllerFactory
Namespace: EPiServer.Web.Mvc
Assembly: EPiServer.dll
Version: 8.11.0Syntax
[ServiceConfiguration(typeof(IControllerFactory))]
public class ControllerTypeControllerFactory : DefaultControllerFactory
Constructors
ControllerTypeControllerFactory()
Initializes a new instance of the ControllerTypeControllerFactory class.
Declaration
public ControllerTypeControllerFactory()
ControllerTypeControllerFactory(IControllerTypeMap)
Initializes a new instance of the ControllerTypeControllerFactory class.
Declaration
public ControllerTypeControllerFactory(IControllerTypeMap controllerTypeMap)
Parameters
Type | Name | Description |
---|---|---|
IControllerTypeMap | controllerTypeMap | The controller type map. |
Methods
GetControllerType(RequestContext, String)
Gets the type of the controller to create.
Declaration
protected override Type GetControllerType(RequestContext requestContext, string controllerName)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Routing.RequestContext | requestContext | The request context. |
System.String | controllerName | Name of the controller. |
Returns
Type | Description |
---|---|
System.Type | The type of controller to use for the current request. |