Compartilhar via


ActionFilterAttribute.IActionFilter.ExecuteActionFilterAsync Method (HttpActionContext, CancellationToken, Func<Task<HttpResponseMessage>>)

 

Executes the filter action asynchronously.

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

Syntax

Task<HttpResponseMessage> IActionFilter.ExecuteActionFilterAsync(
    HttpActionContext actionContext,
    CancellationToken cancellationToken,
    Func<Task<HttpResponseMessage>> continuation
)
private:
virtual Task<HttpResponseMessage^>^ ExecuteActionFilterAsync(
    HttpActionContext^ actionContext,
    CancellationToken cancellationToken,
    Func<Task<HttpResponseMessage^>^>^ continuation
) sealed = IActionFilter::ExecuteActionFilterAsync
private abstract ExecuteActionFilterAsync : 
        actionContext:HttpActionContext *
        cancellationToken:CancellationToken *
        continuation:Func<Task<HttpResponseMessage>> -> Task<HttpResponseMessage>
private override ExecuteActionFilterAsync : 
        actionContext:HttpActionContext *
        cancellationToken:CancellationToken *
        continuation:Func<Task<HttpResponseMessage>> -> Task<HttpResponseMessage>
Private Function ExecuteActionFilterAsync (
    actionContext As HttpActionContext,
    cancellationToken As CancellationToken,
    continuation As Func(Of Task(Of HttpResponseMessage))
) As Task(Of HttpResponseMessage)
    Implements IActionFilter.ExecuteActionFilterAsync

Parameters

Return Value

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

The newly created task for this operation.

Implements

IActionFilter.ExecuteActionFilterAsync(HttpActionContext, CancellationToken, Func<Task<HttpResponseMessage>>)

See Also

ActionFilterAttribute Class
System.Web.Http.Filters Namespace

Return to top