asp.net - How do I order my Custom Filter Attributes -


i'd control order filters run, possible?

[logrequestfilterattribute] [apikeyrequestfilterattribute] 

i want log request first, security check, possible? priority property seems related execution before/after global filters.

thank you, stephen

the request , response filter attributes have priority property can override lets specify sort order upon filters fired.

this sequence of events when first filter executed, servicestack's order of operations wiki page:

  ...    5. request filter attributes priority < 0 gets executed   6. global request filters executed   7. followed request filter attributes priority >= 0   8. action request filters (new api only)   9. service executed configured iservicerunner ,       onbeforeexecute, onafterexecute , handleexception custom hooks fired   10. action response filters (new api only)   11. followed response filter attributes priority < 0   12. global response filters   13. followed response filter attributes priority >= 0 

any time close response in of filters, i.e. httpres.endservicestackrequest() processing of response short-circuited , no further processing done on request.


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -