DefaultHttpControllerActivator Class

Represents a default implementation of an IHttpControllerActivator. A different implementation can be registered via the DependencyResolver. We optimize for the case where we have an ApiControllerActionInvoker instance per HttpControllerDescriptor instance but can support cases where there are many HttpControllerDescriptor instances for one ApiControllerActionInvoker as well. In the latter case the lookup is slightly slower because it goes through the Properties() dictionary.

Inheritance Hierarchy

System.Object
  System.Web.Http.Dispatcher.DefaultHttpControllerActivator

Namespace:  System.Web.Http.Dispatcher
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

'Declaration
Public Class DefaultHttpControllerActivator _
    Implements IHttpControllerActivator
'Usage
Dim instance As DefaultHttpControllerActivator
public class DefaultHttpControllerActivator : IHttpControllerActivator
public ref class DefaultHttpControllerActivator : IHttpControllerActivator
type DefaultHttpControllerActivator =  
    class
        interface IHttpControllerActivator
    end
public class DefaultHttpControllerActivator implements IHttpControllerActivator

The DefaultHttpControllerActivator type exposes the following members.

Constructors

  Name Description
Public method DefaultHttpControllerActivator Initializes a new instance of the DefaultHttpControllerActivator class.

Top

Methods

  Name Description
Public method Create Creates the IHttpController specified by controllerType using the given request.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

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

Reference

System.Web.Http.Dispatcher Namespace