示例#1
0
 /// <summary>
 /// Adds the advice and returns a new AspectInfo.
 /// </summary>
 /// <param name="adviceInfo">The advice information.</param>
 /// <returns></returns>
 public AspectInfo AddAdvice(AdviceInfo adviceInfo)
 {
     return(new AspectInfo(Advices.Concat(new[] { adviceInfo }), PointcutMethod, PointcutMethodHandle, AdvisedMethod, AdvisedMethodHandle, PointcutProperty, IsPointcutPropertySetter, PointcutEvent, IsPointcutEventAdder));
 }
示例#2
0
 /// <summary>
 /// Adds the advice and returns a new AspectInfo.
 /// </summary>
 /// <param name="adviceInfo">The advice information.</param>
 /// <returns></returns>
 public AspectInfo AddAdvice(AdviceInfo adviceInfo)
 {
     return new AspectInfo(Advices.Concat(new[] { adviceInfo }), PointcutMethod, AdvisedMethod, PointcutProperty, IsPointcutPropertySetter);
 }