Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 13, 2012 11:59 AM by priya_marwaha
Dec 05, 2012 08:05 PM|LINK
I've got quite a few ApiControllers that all inherit from a custom base class.
With-out having to put base.Authenticate(); in every get, put, delete method in every ApiController how can i capture every request in the base class? I tried this in the constructor; however, the request object is null in my base Webapi controll class.
Dec 13, 2012 11:59 AM|LINK
When you say "capture" what do you imply? do you want to log the request/ autheticate it etc? Either way, consider using a custom delgating handler - this is invoked prior to the control actually hitting the controller.
Hope this helps,
Please "Mark as Answer" if this resolves your query.