Share via


ResourceControllerFactory Class

 

Specialized ControllerFactory that augments the base controller factory to make it RESTful - specifically, adding support for multiple formats, HTTP method based dispatch to controller methods and HTTP error handling.

Namespace:   Microsoft.Web.Mvc.Resources
Assembly:  Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)

Inheritance Hierarchy

System.Object
  Microsoft.Web.Mvc.Resources.ResourceControllerFactory

Syntax

public class ResourceControllerFactory : IControllerFactory
public ref class ResourceControllerFactory : IControllerFactory
type ResourceControllerFactory = 
    class
        interface IControllerFactory
    end
Public Class ResourceControllerFactory
    Implements IControllerFactory

Constructors

Name Description
System_CAPS_pubmethod ResourceControllerFactory()

Initializes a new instance of the ResourceControllerFactory class.

System_CAPS_pubmethod ResourceControllerFactory(IControllerFactory)

Initializes a new instance of the ResourceControllerFactory class.

Methods

Name Description
System_CAPS_pubmethod CreateController(RequestContext, String)

Creates the specified controller by using the specified request context.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetControllerSessionBehavior(RequestContext, String)

Gets the controller’s session behavior.

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ReleaseController(IController)

Releases the specified controller.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.Web.Mvc.Resources Namespace

Return to top