IAsyncResourceFilter Interface¶
Summary¶
A filter which surrounds execution of model binding, the action (and filters) and the action result (and filters).
Methods¶
-
OnResourceExecutionAsync
(Microsoft.AspNet.Mvc.ResourceExecutingContext, Microsoft.AspNet.Mvc.ResourceExecutionDelegate)¶ Executes the resource filter.
Arguments: - context (Microsoft.AspNet.Mvc.ResourceExecutingContext) – The [Microsoft.AspNet.Mvc.ResourceExecutingContext](Microsoft.AspNet.Mvc.ResourceExecutingContext.yml).
- next (Microsoft.AspNet.Mvc.ResourceExecutionDelegate) – The [Microsoft.AspNet.Mvc.ResourceExecutionDelegate](Microsoft.AspNet.Mvc.ResourceExecutionDelegate.yml). Invoked to execute the next resource filter, or the remainder of the pipeline.
Return type: System.Threading.Tasks.Task
Returns: A [System.Threading.Tasks.Task]() which will complete when the remainder of the pipeline completes.
Task OnResourceExecutionAsync(ResourceExecutingContext context, ResourceExecutionDelegate next)
-