12345678910111213141516171819 |
- using System;
- using Library;
- using Microsoft.AspNetCore.Mvc.Filters;
- namespace MySystem
- {
- public class ResourceFilter : Attribute,IResourceFilter
- {
- public void OnResourceExecuted(ResourceExecutedContext context)
- {
- // 执行完后的操作
- }
- public void OnResourceExecuting(ResourceExecutingContext context)
- {
- // 执行中的过滤器管道
- }
- }
- }
|