I have inherited from and extended the HandleErrorAttribute of MVC3 with some custom logging.
One thing I am struggling to do though is to neatly resolve a dependency in it using Castle Windsor.
Generally I resolve these sorts of dependencies in an extension of the ControllerActionInvoker, but it seems that the HandleErrorAttribute does not pass through here.
Where is it invoked from that I can hook in and extend it?
Thanks.
As an example of what I currently do: https://stackoverflow.com/a/6627002/148998
What I ended up doing was extending the ControllerActionInvoker and resolving any attribute dependencies there, specifically for the exception filters.
The code: