ApiController.ExecuteAsync Method (HttpControllerContext, CancellationToken)
Executes asynchronously a single HTTP operation.
Namespace: System.Web.Http
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
public virtual Task<HttpResponseMessage> ExecuteAsync(
HttpControllerContext controllerContext,
CancellationToken cancellationToken
)
public:
virtual Task<HttpResponseMessage^>^ ExecuteAsync(
HttpControllerContext^ controllerContext,
CancellationToken cancellationToken
)
abstract ExecuteAsync :
controllerContext:HttpControllerContext *
cancellationToken:CancellationToken -> Task<HttpResponseMessage>
override ExecuteAsync :
controllerContext:HttpControllerContext *
cancellationToken:CancellationToken -> Task<HttpResponseMessage>
Public Overridable Function ExecuteAsync (
controllerContext As HttpControllerContext,
cancellationToken As CancellationToken
) As Task(Of HttpResponseMessage)
Parameters
controllerContext
Type: System.Web.Http.Controllers.HttpControllerContextThe controller context for a single HTTP operation.
cancellationToken
Type: System.Threading.CancellationTokenThe cancellation token assigned for the HTTP operation.
Return Value
Type: System.Threading.Tasks.Task<HttpResponseMessage>
The newly started task.
Implements
IHttpController.ExecuteAsync(HttpControllerContext, CancellationToken)
See Also
ApiController Class
System.Web.Http Namespace
Return to top