032.NET5_ActionFilter的多种扩展实现

ActionFilter的多种实现

1. 通过实现IActionFilter接口来完成扩展

2. 通过继承ActionFilterAttribute(系统提供的实现),根据自己的需要,覆盖不用的方法。

3. 异步版本的实现。通过实现IAsyncActionFilter接口来实现

 

posted on 2021-03-03 23:13  L秦岭  阅读(72)  评论(0编辑  收藏  举报

导航