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.

http pipeline

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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -