Freigeben über


AuthorizationFilterAttribute.IAuthorizationFilter.ExecuteAuthorizationFilterAsync Method

Executes the authorization filter during synchronization.

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

Syntax

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

returnValue = CType(instance, IAuthorizationFilter).ExecuteAuthorizationFilterAsync(actionContext, _
    cancellationToken, continuation)
Task<HttpResponseMessage> IAuthorizationFilter.ExecuteAuthorizationFilterAsync(
    HttpActionContext actionContext,
    CancellationToken cancellationToken,
    Func<Task<HttpResponseMessage>> continuation
)
private:
virtual Task<HttpResponseMessage^>^ ExecuteAuthorizationFilterAsync(
    HttpActionContext^ actionContext, 
    CancellationToken cancellationToken, 
    Func<Task<HttpResponseMessage^>^>^ continuation
) sealed = IAuthorizationFilter::ExecuteAuthorizationFilterAsync
private abstract ExecuteAuthorizationFilterAsync : 
        actionContext:HttpActionContext * 
        cancellationToken:CancellationToken * 
        continuation:Func<Task<HttpResponseMessage>> -> Task<HttpResponseMessage> 
private override ExecuteAuthorizationFilterAsync : 
        actionContext:HttpActionContext * 
        cancellationToken:CancellationToken * 
        continuation:Func<Task<HttpResponseMessage>> -> Task<HttpResponseMessage> 
JScript supports the use of explicit interface implementations, but not the declarations of new ones.

Parameters

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

    A continuation of the operation.

Return Value

Type: System.Threading.Tasks.Task<HttpResponseMessage>
The authorization filter during synchronization.

Implements

IAuthorizationFilter.ExecuteAuthorizationFilterAsync(HttpActionContext, CancellationToken, Func<Task<HttpResponseMessage>>)

See Also

Reference

AuthorizationFilterAttribute Class

System.Web.Http.Filters Namespace