DefaultHttpControllerActivator.Create Method

Creates the IHttpController specified by controllerType using the given request.

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

public IHttpController Create(
	HttpRequestMessage request,
	HttpControllerDescriptor controllerDescriptor,
	Type controllerType
)

Parameters

request
Type: HttpRequestMessage

The request message.

controllerDescriptor
Type: System.Web.Http.Controllers.HttpControllerDescriptor

The controller descriptor.

controllerType
Type: System.Type

The type of the controller.

Return Value

Type: System.Web.Http.Controllers.IHttpController
An instance of type controllerType.

Implements

IHttpControllerActivator.Create(HttpRequestMessage, HttpControllerDescriptor, Type)
Show: