Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

External AOP (like AspectJ) weaving for .net?

Tags:

c#

.net

aop

I want to do trace logging in a program by weaving in proxies in the IL. 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, that is why I ask.

like image 207
leeand00 Avatar asked Dec 06 '22 22:12

leeand00


1 Answers

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.

like image 197
adrianbanks Avatar answered Dec 28 '22 21:12

adrianbanks