Share via


ApiControllerActionInvoker.InvokeActionAsync Method (HttpActionContext, CancellationToken)

 

Asynchronously invokes the specified action by using the specified controller context.

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

Syntax

public virtual Task<HttpResponseMessage> InvokeActionAsync(
    HttpActionContext actionContext,
    CancellationToken cancellationToken
)
public:
virtual Task<HttpResponseMessage^>^ InvokeActionAsync(
    HttpActionContext^ actionContext,
    CancellationToken cancellationToken
)
abstract InvokeActionAsync : 
        actionContext:HttpActionContext *
        cancellationToken:CancellationToken -> Task<HttpResponseMessage>
override InvokeActionAsync : 
        actionContext:HttpActionContext *
        cancellationToken:CancellationToken -> Task<HttpResponseMessage>
Public Overridable Function InvokeActionAsync (
    actionContext As HttpActionContext,
    cancellationToken As CancellationToken
) As Task(Of HttpResponseMessage)

Parameters

Return Value

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

The invoked action.

Implements

IHttpActionInvoker.InvokeActionAsync(HttpActionContext, CancellationToken)

See Also

ApiControllerActionInvoker Class
System.Web.Http.Controllers Namespace

Return to top