This is the archive page for .NET Junkie. Click to go to the frontpage of this site.

Dependency Injection in Attributes: don’t do it!

A number of common frameworks have promoted the concept of using attributes as a way of implementing AOP. On the surface this seems perfectly acceptable but in reality the maintainability of these options degrades as you add behaviors by injecting dependencies into attributes. The point of this article is “don’t do it!” There are better ways and this article will describe one such alternative.

read more...

- filed under .NET General, ASP.NET, C#, Dependency injection - 25 comments / No trackbacks - §