IHttpController.ExecuteAsync Method

Executes the controller for synchronization.

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

Task<HttpResponseMessage> ExecuteAsync(
	HttpControllerContext controllerContext,
	CancellationToken cancellationToken
)

Parameters

controllerContext
Type: System.Web.Http.Controllers.HttpControllerContext

The current context for a test controller.

cancellationToken
Type: System.Threading.CancellationToken

The notification that cancels the operation.

Return Value

Type: System.Threading.Tasks.Task<HttpResponseMessage>
The controller.
Show: