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

A controller factory which uses an internal list of IFilteredControllerFactory in order to invoke different controller factories dependent upon their implementation of IFilteredControllerFactory.CanHandle for the current request. Allows circumvention of MVC3's singly registered IControllerFactory.
Inheritance: System.Web.Mvc.DefaultControllerFactory
Afficher le fichier Open project: RebelCMS/rebelcmsxu5

Méthodes publiques

Méthode Description
CreateController ( System.Web.Routing.RequestContext requestContext, string controllerName ) : IController

Creates the specified controller by using the specified request context.

MasterControllerFactory ( IEnumerable controllerFactories ) : System
RegisterFactory ( IFilteredControllerFactory slaveFactory ) : void

Registers the factory.

ReleaseController ( IController controller ) : void

Releases the specified controller.

Méthodes protégées

Méthode Description
MasterControllerFactory ( ) : System

Method Details

CreateController() public méthode

Creates the specified controller by using the specified request context.
The parameter is null. The parameter is null or empty.
public CreateController ( System.Web.Routing.RequestContext requestContext, string controllerName ) : IController
requestContext System.Web.Routing.RequestContext The context of the HTTP request, which includes the HTTP context and route data.
controllerName string The name of the controller.
Résultat IController

MasterControllerFactory() protected méthode

protected MasterControllerFactory ( ) : System
Résultat System

MasterControllerFactory() public méthode

public MasterControllerFactory ( IEnumerable controllerFactories ) : System
controllerFactories IEnumerable
Résultat System

RegisterFactory() public méthode

Registers the factory.
public RegisterFactory ( IFilteredControllerFactory slaveFactory ) : void
slaveFactory IFilteredControllerFactory The slave factory.
Résultat void

ReleaseController() public méthode

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