Class UmbracoControllerFactory
Abstract filtered controller factory used for all Umbraco controller factory implementations
Inheritance
System.Object
Namespace: Umbraco.Web.Mvc
Assembly: Umbraco.Web.dll
Syntax
public abstract class UmbracoControllerFactory : IFilteredControllerFactory
Methods
View SourceCanHandle(RequestContext)
Declaration
public abstract bool CanHandle(RequestContext request)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Routing.RequestContext | request |
Returns
Type | Description |
---|---|
System.Boolean |
CreateController(RequestContext, String)
Creates the specified controller by using the specified request context.
Declaration
public virtual IController CreateController(RequestContext requestContext, string controllerName)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Routing.RequestContext | requestContext | The request context. |
System.String | controllerName | The name of the controller. |
Returns
Type | Description |
---|---|
IController | The controller. |
GetControllerSessionBehavior(RequestContext, String)
Gets the controller's session behavior.
Declaration
public SessionStateBehavior GetControllerSessionBehavior(RequestContext requestContext, string controllerName)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Routing.RequestContext | requestContext | The request context. |
System.String | controllerName | The name of the controller whose session behavior you want to get. |
Returns
Type | Description |
---|---|
System.Web.SessionState.SessionStateBehavior | The controller's session behavior. |
GetControllerType(RequestContext, String)
Declaration
public virtual Type GetControllerType(RequestContext requestContext, string controllerName)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Routing.RequestContext | requestContext | |
System.String | controllerName |
Returns
Type | Description |
---|---|
System.Type |
ReleaseController(IController)
Releases the specified controller.
Declaration
public virtual void ReleaseController(IController controller)
Parameters
Type | Name | Description |
---|---|---|
IController | controller | The controller. |