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
- you can use
ihttpmodule
, handle required methods (for exampleapplication_endrequest
) - you can derive
actionfilterattribute
, annotate controllers
start/finish time... stopwatch
should accessible, or can work current datetime.
Comments
Post a Comment