C# Class Framework.Mvc.Controllers.CastleControllerFactory

Instantinate controller throught castle kernel.
Inheritance: System.Web.Mvc.DefaultControllerFactory
Afficher le fichier Open project: coreframework/Core-Framework

Méthodes publiques

Méthode Description
CastleControllerFactory ( IKernel kernel ) : System

Initializes a new instance of the CastleControllerFactory class.

ReleaseController ( IController controller ) : void

Releases the specified controller.

Méthodes protégées

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

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

GetControllerInstance() protected méthode

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

ReleaseController() public méthode

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