tags:

views:

291

answers:

5

Hi everyone,

I'm wondering what's good out there for AOP / crosscutting in .Net, along the lines of AspectJ. I see Microsoft has a policy injection application block; any other good stuff out there I should take a look at?

+4  A: 

PostSharp is probably the most popular option, although I believe Sprint.NET is fairly widespread, as well.

Reed Copsey
Here's a link to my notes on an AOP/PostSharp presentation by Michael Hall, if anyone's interested: http://www.truewill.net/iacodecamp2009/hall.htm
TrueWill
+1  A: 

I know of PostSharp which seems to be doing a lot of AOP-things really well using attributes.

cwap
+1  A: 

I use Microsoft Unity but there is also StructureMap, Spring.NET, Castle Windsor and, the most popular, PostSharp.

Jason
PostSharp is certainly AOP, but I'd call Unity and StructureMap IoC Container frameworks. Windsor and Spring do IoC and more, I think.
TrueWill
Both Unity an StructureMap have capabilities for AOP (see the links I provided for some examples). Depending on the problem trying to be solved, they are viable solutions.
Jason
A: 

Delphi Prism has compiler support for AOP

http://prismwiki.codegear.com/en/Cirrus

Mosh
+1  A: 

Spring.Net has an AOP framework which can be used with or without Spring's IoC framework. If you are also looking for an IoC framework, Spring.Net makes a compelling case and is free and open source.

Another plus for Spring.Net IMO is that the documentation and forum support really is excellent. One negative comment about Spring.Net that I have seen several times is that the XML configuration is wordy and difficult to read, which is true. It is however at least consistent so that once you have learned how it works for one block, you can apply it easily to other blocks.

Alfamale