ApiControllerActionInvoker.InvokeActionAsync Method

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)

public virtual Task<HttpResponseMessage> InvokeActionAsync(
	HttpActionContext actionContext,
	CancellationToken cancellationToken
)

Parameters

actionContext
Type: System.Web.Http.Controllers.HttpActionContext
The controller context.
cancellationToken
Type: System.Threading.CancellationToken
The cancellation token.

Return Value

Type: System.Threading.Tasks.Task<HttpResponseMessage>
The invoked action.

Implements

IHttpActionInvoker.InvokeActionAsync(HttpActionContext, CancellationToken)
Show: