Is it possible to use Dependency Injection/IoC on an ASP.NET MVC FilterAttribute ?
- by Pure.Krome
Hi folks,
I've got a simple custom FilterAttribute which I use decorate various ActionMethods.
eg.
[AcceptVerbs(HttpVerbs.Get)]
[MyCustomFilter]
public ActionResult Bar(...)
{ ... }
Now, I wish to add some logging to this CustomFilter Action .. so being a good boy, I'm using DI/IoC ... and as such wish to use this pattern for my custom…