Search code examples
c#.netaop

External AOP (like AspectJ) weaving for .NET


I want to do trace logging in a program by weaving in proxies in the CIL. What are some current frameworks that are good for this?

(Most of the ones I've Googled are either old or don't have documentation, and that is why I ask.)


Solution

  • The most common thing I've come across for doing this type of thing in .Net is PostSharp. It has been around for a while and is well-known. It has a specific example for how to inject logging on its website.

    EDIT

    Since I originally posted this answer, it looks like PostSharp has moved to a new site.