C# 클래스 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.
상속: System.Web.Mvc.DefaultControllerFactory
파일 보기 프로젝트 열기: RebelCMS/rebelcmsxu5

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
MasterControllerFactory ( ) : System

메소드 상세

CreateController() 공개 메소드

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.
리턴 IController

MasterControllerFactory() 보호된 메소드

protected MasterControllerFactory ( ) : System
리턴 System

MasterControllerFactory() 공개 메소드

public MasterControllerFactory ( IEnumerable controllerFactories ) : System
controllerFactories IEnumerable
리턴 System

RegisterFactory() 공개 메소드

Registers the factory.
public RegisterFactory ( IFilteredControllerFactory slaveFactory ) : void
slaveFactory IFilteredControllerFactory The slave factory.
리턴 void

ReleaseController() 공개 메소드

Releases the specified controller.
public ReleaseController ( IController controller ) : void
controller IController The controller to release.
리턴 void