Share via


IAuthorizationFilter.ExecuteAuthorizationFilterAsync Method

Executes the authorization filter to synchronize.

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

Syntax

'Declaration
Function ExecuteAuthorizationFilterAsync ( _
    actionContext As HttpActionContext, _
    cancellationToken As CancellationToken, _
    continuation As Func(Of Task(Of HttpResponseMessage)) _
) As Task(Of HttpResponseMessage)
'Usage
Dim instance As IAuthorizationFilter 
Dim actionContext As HttpActionContext 
Dim cancellationToken As CancellationToken 
Dim continuation As Func(Of Task(Of HttpResponseMessage))
Dim returnValue As Task(Of HttpResponseMessage)

returnValue = instance.ExecuteAuthorizationFilterAsync(actionContext, _
    cancellationToken, continuation)
Task<HttpResponseMessage> ExecuteAuthorizationFilterAsync(
    HttpActionContext actionContext,
    CancellationToken cancellationToken,
    Func<Task<HttpResponseMessage>> continuation
)
Task<HttpResponseMessage^>^ ExecuteAuthorizationFilterAsync(
    HttpActionContext^ actionContext, 
    CancellationToken cancellationToken, 
    Func<Task<HttpResponseMessage^>^>^ continuation
)
abstract ExecuteAuthorizationFilterAsync : 
        actionContext:HttpActionContext * 
        cancellationToken:CancellationToken * 
        continuation:Func<Task<HttpResponseMessage>> -> Task<HttpResponseMessage> 
function ExecuteAuthorizationFilterAsync(
    actionContext : HttpActionContext, 
    cancellationToken : CancellationToken, 
    continuation : Func<Task<HttpResponseMessage>>
) : Task<HttpResponseMessage>

Parameters

  • continuation
    Type: System.Func<Task<HttpResponseMessage>>

    The continuation.

Return Value

Type: System.Threading.Tasks.Task<HttpResponseMessage>
The authorization filter to synchronize.

See Also

Reference

IAuthorizationFilter Interface

System.Web.Http.Filters Namespace