c# - Execution order of AuthorizationFilterAttribute and ActionFilterAttribute in Web Api -
i have following controller.
public class examplecontroller : odatacontroller {     [authorizationfilterattribute]     [actionfilterattribute]     public singleresult<example> get()     {         // return singleresult     } }   according http message lifecycle (pdf) authorization filter should executed first.

but action filter executed before authorization filter. wrong , can execute authorization filter first?
note: odatacontroller derive apicontroller.
note 2: execution order doesn't change when register authorizationfilterattribute on method, class or global.
 
 
Comments
Post a Comment