injecting in a custom attribute

Nov 16, 2013 at 2:34 PM
I have a custom attribute filter (derivated from ActionFilterAttribute) used to intercept and log informations.
I use it to decorate some MVC actions. It can't be a global filter because some of the attribute's properties depend on the action

How I can inject the log provider into my attribute?

Nov 16, 2013 at 10:01 PM
If you use the RegisterMvcAttributeFilterProvider extension method of the MVC Integration Package, any attribute on that is declared on an Controller action will get its properties injected (implicitly).
Marked as answer by dot_NET_Junkie on 3/2/2014 at 11:17 AM