Partager via


IHttpController.ExecuteAsync Method (HttpControllerContext, CancellationToken)

 

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

Return Value

Type: System.Threading.Tasks.Task<HttpResponseMessage>

The controller.

See Also

IHttpController Interface
System.Web.Http.Controllers Namespace

Return to top