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
DefaultControllerFactory
Implements

Constructors

DefaultControllerFactory()

Initializes a new instance of the DefaultControllerFactory class.

DefaultControllerFactory(IControllerActivator)

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

Methods

CreateController(RequestContext, String)

Creates the specified controller by using the specified request context.

GetControllerInstance(RequestContext, Type)

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

GetControllerSessionBehavior(RequestContext, Type)

Returns the controller's session behavior.

GetControllerType(RequestContext, String)

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

ReleaseController(IController)

Releases the specified controller.

Explicit Interface Implementations

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