3

I would like to ask users of the AOP framework Postsharp, what specifically are you using the framework for?

Also, I know it's use has a big negative impact on build times, but how about runtime performace? Is there much of a hit?

Thanks,

S

UpTheCreek
  • 31,444
  • 34
  • 152
  • 221
  • Seems to me like this is a dupe of http://stackoverflow.com/questions/879863/other-than-logging-and-transaction-management-what-are-some-practical-applicatio – Graviton Sep 23 '09 at 12:05
  • @Ngu Similar - but I want to ask it from a .net perspective (which postsharp is) - some of the uses in other languages (e.g. for observer in Java) are not relevant for .net – UpTheCreek Sep 23 '09 at 12:18

4 Answers4

2

I use it to remove the property name smell from INotifyPropertyChanged methods, and it hasn't hugely affected runtime performance.

Pete OHanlon
  • 9,086
  • 2
  • 29
  • 28
2

I use the compile time weaving to add extra functionality to some methods that have been decorated with a certain attribute.

Like here.

Frederik Gheysels
  • 56,135
  • 11
  • 101
  • 154
1

In short, it makes development faster, code more maintainable and easier to understand. There doesn't have to be a performance hit when you are willing to put in the effort.

0

We use it to inject our own aspects (persistent property accessors, construction notifiers, session & transaction activators, etc.) in DataObjects.Net.

Alex Yakunin
  • 6,330
  • 3
  • 33
  • 52