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.


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

public class DefaultHttpControllerActivator implements IHttpControllerActivator

The DefaultHttpControllerActivator type exposes the following members.

Public methodDefaultHttpControllerActivatorInitializes a new instance of the DefaultHttpControllerActivator class.

Public methodCreate Creates the IHttpController specified by controllerType using the given request.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)

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