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 | |
---|---|---|
DefaultHttpControllerActivator | Initializes a new instance of the DefaultHttpControllerActivator class. |
Top
Methods
Name | Description | |
---|---|---|
Create | Creates the IHttpController specified by controllerType using the given request. | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
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.