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
Afficher le fichier Open project: RebelCMS/rebelcmsxu5

Méthodes publiques

Méthode 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 méthode

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

CreateController() public méthode

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.
Résultat IController

GetControllerSessionBehavior() public méthode

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.
Résultat SessionStateBehavior

ReleaseController() public méthode

Releases the specified controller.
public ReleaseController ( IController controller ) : void
controller IController The controller.
Résultat void

RenderControllerFactory() public méthode

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