Exemple #1
0
 public int CrazyAdvise(CallMethodJointPoint jp)
 {
     jp.Target = "crazy"; // We redirect the method call to a different instance
     return((int)jp.Execute());
 }
Exemple #2
0
 public object MockAdvice2(CallMethodJointPoint jp)
 {
     return(advice2(jp));
 }