IAsyncPageFilter 接口

定义

异步包围页处理程序方法执行的筛选器。 仅当对处理程序的类型进行修饰时,才会执行此筛选器,而不是在单个处理程序方法上执行。

public interface class IAsyncPageFilter : Microsoft::AspNetCore::Mvc::Filters::IFilterMetadata
public interface IAsyncPageFilter : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata
type IAsyncPageFilter = interface
    interface IFilterMetadata
Public Interface IAsyncPageFilter
Implements IFilterMetadata
派生
实现

方法

OnPageHandlerExecutionAsync(PageHandlerExecutingContext, PageHandlerExecutionDelegate)

在调用处理程序方法之前,在模型绑定完成后异步调用。

OnPageHandlerSelectionAsync(PageHandlerSelectedContext)

在选择处理程序方法之后,但在模型绑定发生之前异步调用。

适用于