Filter and add it to control the order of execution

1 are added in the process or the head controller

 [TypeFilter(typeof(CustomControllerActionFilterAttribute),Order =-1)]

2. In the process or are added to the head controller

 [ServiceFilter(typeof(CustomActionFilterAttribute),Order =-2)]

Guess you like

Origin www.cnblogs.com/Blog-JJ/p/11328720.html