SceneContextFilter 类
让所有实现SceneContextFilter的控制器,都在执行的Scene下执行
继承成员
命名空间: Fantasy.Network.HTTP
程序集: Fantasy.Net.dll
语法
public sealed class SceneContextFilter : IAsyncActionFilter, IFilterMetadata
构造函数
| 编辑本文 查看源代码SceneContextFilter(Scene)
构造函数
声明
public SceneContextFilter(Scene scene)
参数
类型 | 名称 | 描述 |
---|---|---|
Scene | scene |
方法
| 编辑本文 查看源代码OnActionExecutionAsync(ActionExecutingContext, ActionExecutionDelegate)
OnActionExecutionAsync
声明
public Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next)
参数
类型 | 名称 | 描述 |
---|---|---|
ActionExecutingContext | context | |
ActionExecutionDelegate | next |
返回
类型 | 描述 |
---|---|
Task |