-
Notifications
You must be signed in to change notification settings - Fork 45
AdviceTypes
Pascal Craponne edited this page Feb 21, 2015
·
6 revisions
#Two shades of advice, three of scope
##About advices
Currently, Mr. Advice can work at two level of advices:
- The usual level, at method or property interception. We call it simply an advice
- The more unusual, when the advice comes at type load (so it occurs only once per member). We call it info advice (because we had no better idea at the moment)
##About levels
Mr. Advice support four levels of pointcut injection:
- What you expect is the method level, so an advice is injected specifically on a method or property.
- But it can also be inject at type level. If so, all methods and properties of the type will be advised.
- The most common, it can be injected at assembly level, and here, all methods of all type will be advised.
- Finally, advices can also be injected on parameters.
Mr. Advice is sponsored by Arx One and available as a NuGet package