IAsyncResourceFilter Interface

Summary

A filter which surrounds execution of model binding, the action (and filters) and the action result (and filters).

Syntax

public interface IAsyncResourceFilter : IFilter

GitHub

View on GitHub

interface Microsoft.AspNet.Mvc.IAsyncResourceFilter

Methods

OnResourceExecutionAsync(Microsoft.AspNet.Mvc.ResourceExecutingContext, Microsoft.AspNet.Mvc.ResourceExecutionDelegate)

Executes the resource filter.

Arguments:
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)