C# Class BlogSharp.MvcExtensions.ControllerFactories.WindsorControllerFactory

The factory for the Windsor controllers
Inheritance: System.Web.Mvc.DefaultControllerFactory, IExtendedControllerFactory
Show file Open project: BlogSharp/Blogsharp

Public Methods

Method Description
CreateController ( System.Web.Routing.RequestContext context, Type controllerType ) : IController

Creates a new controller.

ReleaseController ( IController controller ) : void

Releases a created controller.

WindsorControllerFactory ( IKernel kernel ) : System

Initializes a new instance of the WindsorControllerFactory class.

Protected Methods

Method Description
GetControllerInstance ( Type controllerType ) : IController

Obtains a Instance of a existent controller.

Method Details

CreateController() public method

Creates a new controller.
public CreateController ( System.Web.Routing.RequestContext context, Type controllerType ) : IController
context System.Web.Routing.RequestContext The context of the creation.
controllerType System.Type The type of controller.
return IController

GetControllerInstance() protected method

Obtains a Instance of a existent controller.
protected GetControllerInstance ( Type controllerType ) : IController
controllerType System.Type The type of controller.
return IController

ReleaseController() public method

Releases a created controller.
public ReleaseController ( IController controller ) : void
controller IController The controller to release.
return void

WindsorControllerFactory() public method

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