KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I need to audit log calls to my Web API, ideally I'd like to use an Attribute, something like: [HttpPost, Auditing] public dynamic MyAPICall() The Attribute should be able to intercept the API call before and after execution in order to log the parameters and also, how long the API call took to run. With MVC I could create an ActionFilterAttribute derivative and override OnActionExecuted and OnActionExecuting. Is the equivalent possible in the Web API world?
Tags (comma-separated)
Save Edits
Cancel