DefaultControllerFactory DefaultControllerFactory DefaultControllerFactory Class

Definition

Represents the controller factory that is registered by default.

public class DefaultControllerFactory : System.Web.Mvc.IControllerFactory
type DefaultControllerFactory = class
    interface IControllerFactory
Public Class DefaultControllerFactory
Implements IControllerFactory
Inheritance
DefaultControllerFactoryDefaultControllerFactoryDefaultControllerFactory
Implements

Constructors

DefaultControllerFactory() DefaultControllerFactory() DefaultControllerFactory()

Initializes a new instance of the DefaultControllerFactory class.

DefaultControllerFactory(IControllerActivator) DefaultControllerFactory(IControllerActivator) DefaultControllerFactory(IControllerActivator)

Initializes a new instance of the DefaultControllerFactory class using a controller activator.

Methods

CreateController(RequestContext, String) CreateController(RequestContext, String) CreateController(RequestContext, String)

Creates the specified controller by using the specified request context.

GetControllerInstance(RequestContext, Type) GetControllerInstance(RequestContext, Type) GetControllerInstance(RequestContext, Type)

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

GetControllerSessionBehavior(RequestContext, Type) GetControllerSessionBehavior(RequestContext, Type) GetControllerSessionBehavior(RequestContext, Type)

Returns the controller's session behavior.

GetControllerType(RequestContext, String) GetControllerType(RequestContext, String) GetControllerType(RequestContext, String)

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

ReleaseController(IController) ReleaseController(IController) ReleaseController(IController)

Releases the specified controller.

Explicit Interface Implementations

IControllerFactory.GetControllerSessionBehavior(RequestContext, String) IControllerFactory.GetControllerSessionBehavior(RequestContext, String) IControllerFactory.GetControllerSessionBehavior(RequestContext, String)

This API supports the ASP.NET MVC infrastructure and is not intended to be used directly from your code. This method calls the GetControllerSessionBehavior(RequestContext, Type) method.

Applies to