ActionFilterAttribute.IActionFilter.ExecuteActionFilterAsync Method
Executes the filter action asynchronously.
Namespace: System.Web.Http.Filters
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Private Function ExecuteActionFilterAsync ( _
actionContext As HttpActionContext, _
cancellationToken As CancellationToken, _
continuation As Func(Of Task(Of HttpResponseMessage)) _
) As Task(Of HttpResponseMessage) Implements IActionFilter.ExecuteActionFilterAsync
'Usage
Dim instance As ActionFilterAttribute
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, IActionFilter).ExecuteActionFilterAsync(actionContext, _
cancellationToken, continuation)
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>
JScript supports the use of explicit interface implementations, but not the declarations of new ones.
Parameters
actionContext
Type: System.Web.Http.Controllers.HttpActionContextThe action context.
cancellationToken
Type: System.Threading.CancellationTokenThe cancellation token assigned for this task.
continuation
Type: System.Func<Task<HttpResponseMessage>>The delegate function to continue after the action method is invoked.
Return Value
Type: System.Threading.Tasks.Task<HttpResponseMessage>
The newly created task for this operation.