C# Class Framework.Mvc.Controllers.CastleControllerFactory

Instantinate controller throught castle kernel.
Inheritance: System.Web.Mvc.DefaultControllerFactory
Mostra file Open project: coreframework/Core-Framework

Public Methods

Method Description
CastleControllerFactory ( IKernel kernel ) : System

Initializes a new instance of the CastleControllerFactory class.

ReleaseController ( IController controller ) : void

Releases the specified controller.

Protected Methods

Method Description
GetControllerInstance ( System.Web.Routing.RequestContext requestContext, Type controllerType ) : IController

Retrieves the controller instance for the specified request context and controller type.

Method Details

CastleControllerFactory() public method

Initializes a new instance of the CastleControllerFactory class.
public CastleControllerFactory ( IKernel kernel ) : System
kernel IKernel The kernel.
return System

GetControllerInstance() protected method

Retrieves the controller instance for the specified request context and controller type.
/// is null. /// cannot be assigned. An instance of cannot be created.
protected GetControllerInstance ( System.Web.Routing.RequestContext requestContext, Type controllerType ) : IController
requestContext System.Web.Routing.RequestContext The context of the HTTP request, which includes the HTTP context and route data.
controllerType System.Type The type of the controller.
return IController

ReleaseController() public method

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