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
actionContext
Type: System.Web.Http.Controllers.HttpActionContextThe execution context.
cancellationToken
Type: System.Threading.CancellationTokenThe cancellation token assigned for the HTTP operation.
Return Value
Type: System.Threading.Tasks.Task<HttpResponseMessage>
The newly started task.