IHttpActionInvoker.InvokeActionAsync Method (HttpActionContext, CancellationToken)
Executes asynchronously the HTTP operation.
Namespace: System.Web.Http.Controllers
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
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 As HttpActionContext,
cancellationToken As CancellationToken
) As Task(Of 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.
See Also
IHttpActionInvoker Interface
System.Web.Http.Controllers Namespace
Return to top