Executes the controller for synchronization.
Namespace:   System.Web.Http.Controllers
Assembly:  System.Web.Http (in System.Web.Http.dll)
Syntax
Task<HttpResponseMessage> ExecuteAsync(
    HttpControllerContext controllerContext,
    CancellationToken cancellationToken
)
Task<HttpResponseMessage^>^ ExecuteAsync(
    HttpControllerContext^ controllerContext,
    CancellationToken cancellationToken
)
abstract ExecuteAsync : 
        controllerContext:HttpControllerContext *
        cancellationToken:CancellationToken -> Task<HttpResponseMessage>
Function ExecuteAsync (
    controllerContext As HttpControllerContext,
    cancellationToken As CancellationToken
) As Task(Of HttpResponseMessage)
Parameters
- controllerContext 
 Type: System.Web.Http.Controllers.HttpControllerContext- The current context for a test controller. 
- cancellationToken 
 Type: System.Threading.CancellationToken- The notification that cancels the operation. 
Return Value
Type: System.Threading.Tasks.Task<HttpResponseMessage>
The controller.
See Also
IHttpController Interface
System.Web.Http.Controllers Namespace
Return to top