IHttpActionInvoker.InvokeActionAsync Method

Executes asynchronously the HTTP operation.

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

'Declaration
Function InvokeActionAsync ( _
	actionContext As HttpActionContext, _
	cancellationToken As CancellationToken _
) As Task(Of HttpResponseMessage)
'Usage
Dim instance As IHttpActionInvoker 
Dim actionContext As HttpActionContext 
Dim cancellationToken As CancellationToken 
Dim returnValue As Task(Of HttpResponseMessage)

returnValue = instance.InvokeActionAsync(actionContext, _
	cancellationToken)

Parameters

actionContext
Type: System.Web.Http.Controllers.HttpActionContext

The execution context.

cancellationToken
Type: System.Threading.CancellationToken

The cancellation token assigned for the HTTP operation.

Return Value

Type: System.Threading.Tasks.Task(Of HttpResponseMessage)
The newly started task.
Show: