rest - Asp.Net Web Api Action Methods Process Time logging -


i want logging time infos of every web api action methods.i want know when action method started , when finished can find elapsed time of action.

i can logging every request , response use custom handler(delegatinghandler).is possible log methods start , finish times use handler or etc

thanks

  1. you can use ihttpmodule , handle required methods (for example application_endrequest)
  2. you can derive actionfilterattribute , annotate controllers

start/finish time... stopwatch should accessible, or can work current datetime.


Comments

Popular posts from this blog

javascript - Add class to another page attribute using URL id - Jquery -

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -