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

A controller factory for the render pipeline of Rebel 1. This controller factory tries to create a controller with the supplied name, and falls back to RebelController if none was found.
Inheritance: IFilteredControllerFactory
Mostra file Open project: RebelCMS/rebelcmsxu5

Public Methods

Method Description
CanHandle ( System.Web.Routing.RequestContext request ) : bool

Determines whether this instance can handle the specified request.

CreateController ( System.Web.Routing.RequestContext requestContext, string controllerName ) : IController

Creates the specified controller by using the specified request context.

GetControllerSessionBehavior ( System.Web.Routing.RequestContext requestContext, string controllerName ) : SessionStateBehavior

Gets the controller's session behavior.

ReleaseController ( IController controller ) : void

Releases the specified controller.

RenderControllerFactory ( IRebelApplicationContext applicationContext ) : System

Initializes a new instance of the T:System.Object class.

Method Details

CanHandle() public method

Determines whether this instance can handle the specified request.
public CanHandle ( System.Web.Routing.RequestContext request ) : bool
request System.Web.Routing.RequestContext The request.
return bool

CreateController() public method

Creates the specified controller by using the specified request context.
public CreateController ( System.Web.Routing.RequestContext requestContext, string controllerName ) : IController
requestContext System.Web.Routing.RequestContext The request context.
controllerName string The name of the controller.
return IController

GetControllerSessionBehavior() public method

Gets the controller's session behavior.
public GetControllerSessionBehavior ( System.Web.Routing.RequestContext requestContext, string controllerName ) : SessionStateBehavior
requestContext System.Web.Routing.RequestContext The request context.
controllerName string The name of the controller whose session behavior you want to get.
return SessionStateBehavior

ReleaseController() public method

Releases the specified controller.
public ReleaseController ( IController controller ) : void
controller IController The controller.
return void

RenderControllerFactory() public method

Initializes a new instance of the T:System.Object class.
public RenderControllerFactory ( IRebelApplicationContext applicationContext ) : System
applicationContext IRebelApplicationContext
return System