Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ApiController.ExecuteAsync Method

Executes asynchronously a single HTTP operation.

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

public virtual Task<HttpResponseMessage> ExecuteAsync(
	HttpControllerContext controllerContext,
	CancellationToken cancellationToken
)

Parameters

controllerContext
Type: System.Web.Http.Controllers.HttpControllerContext

The controller context for a single HTTP operation.

cancellationToken
Type: System.Threading.CancellationToken

The cancellation token assigned for the HTTP operation.

Return Value

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

Implements

IHttpController.ExecuteAsync(HttpControllerContext, CancellationToken)
Show:
© 2015 Microsoft