Class ApiControllerActionInvoker
- Namespace
- System.Web.Http.Controllers
- Assembly
- System.Web.Http.dll
Invokes the action methods of a controller.
public class ApiControllerActionInvoker : IHttpActionInvoker
- Inheritance
-
ApiControllerActionInvoker
- Implements
- Inherited Members
Constructors
ApiControllerActionInvoker()
Initializes a new instance of the ApiControllerActionInvoker class.
public ApiControllerActionInvoker()
Methods
InvokeActionAsync(HttpActionContext, CancellationToken)
Asynchronously invokes the specified action by using the specified controller context.
public virtual Task<HttpResponseMessage> InvokeActionAsync(HttpActionContext actionContext, CancellationToken cancellationToken)
Parameters
actionContext
HttpActionContextThe controller context.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task<HttpResponseMessage>
The invoked action.