Esempio n. 1
0
 public void Advise(MethodInfoAdviceContext context)
 {
     var methodInfo = context.TargetMethod as MethodInfo;
     if (methodInfo != null)
         MethodInfos.Add(methodInfo);
 }
 public void Advise(MethodInfoAdviceContext context)
 {
     var methodInfo = context.TargetMethod as MethodInfo;
     if (methodInfo != null && methodInfo.ReturnType != (typeof(void)))
         throw new InvalidOperationException("ExclusiveUpdate can only be applied to void methods");
 }