IHttpController.ExecuteAsync Method

Executes the controller for synchronization.

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

'Declaration
Function ExecuteAsync ( _
	controllerContext As HttpControllerContext, _
	cancellationToken As CancellationToken _
) As Task(Of HttpResponseMessage)
'Usage
Dim instance As IHttpController 
Dim controllerContext As HttpControllerContext 
Dim cancellationToken As CancellationToken 
Dim returnValue As Task(Of HttpResponseMessage)

returnValue = instance.ExecuteAsync(controllerContext, _
	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(Of HttpResponseMessage)
The controller.
Show: