Partager via


IHttpActionInvoker.InvokeActionAsync Method

Executes asynchronously the HTTP operation.

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

Syntax

'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)
Task<HttpResponseMessage> InvokeActionAsync(
    HttpActionContext actionContext,
    CancellationToken cancellationToken
)
Task<HttpResponseMessage^>^ InvokeActionAsync(
    HttpActionContext^ actionContext, 
    CancellationToken cancellationToken
)
abstract InvokeActionAsync : 
        actionContext:HttpActionContext * 
        cancellationToken:CancellationToken -> Task<HttpResponseMessage> 
function InvokeActionAsync(
    actionContext : HttpActionContext, 
    cancellationToken : CancellationToken
) : Task<HttpResponseMessage>

Parameters

Return Value

Type: System.Threading.Tasks.Task<HttpResponseMessage>
The newly started task.

See Also

Reference

IHttpActionInvoker Interface

System.Web.Http.Controllers Namespace