Aspect Oriented Programming: What do you use PostSharp for?
Asked Answered
B

4

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

Blowtube answered 23/9, 2009 at 11:50 Comment(2)
Seems to me like this is a dupe of #880363Sexlimited
@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 .netBlowtube
A
2

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

Amathist answered 23/9, 2009 at 11:53 Comment(2)
Can you provide an example please ?Sputnik
postsharp.org/blog/… gives you an idea of what I'm talking about.Amathist
E
2

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

Like here.

Edison answered 23/9, 2009 at 11:57 Comment(0)
S
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.

Seagirt answered 3/10, 2009 at 10:19 Comment(0)
D
0

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

Donau answered 24/9, 2009 at 14:54 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.