Share via


HttpActionDescriptor.ExecuteAsync Method (HttpControllerContext, IDictionary<String, Object>, CancellationToken)

 

Executes the described action and returns a Task<TResult> that once completed will contain the return value of the action.

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

Syntax

public abstract Task<object> ExecuteAsync(
    HttpControllerContext controllerContext,
    IDictionary<string, object> arguments,
    CancellationToken cancellationToken
)
public:
virtual Task<Object^>^ ExecuteAsync(
    HttpControllerContext^ controllerContext,
    IDictionary<String^, Object^>^ arguments,
    CancellationToken cancellationToken
) abstract
abstract ExecuteAsync : 
        controllerContext:HttpControllerContext *
        arguments:IDictionary<string, Object> *
        cancellationToken:CancellationToken -> Task<Object>
Public MustOverride Function ExecuteAsync (
    controllerContext As HttpControllerContext,
    arguments As IDictionary(Of String, Object),
    cancellationToken As CancellationToken
) As Task(Of Object)

Parameters

Return Value

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

A Task<TResult> that once completed will contain the return value of the action.

See Also

HttpActionDescriptor Class
System.Web.Http.Controllers Namespace

Return to top