public void Advise(MethodInfoAdviceContext context) { if (MethodInfoAdviceTests.Expected != Priority) { throw new InvalidOperationException(); } MethodInfoAdviceTests.Expected = Priority - 1; }
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"); } }
public void Advise(MethodInfoAdviceContext context) { var methodInfo = context.TargetMethod as MethodInfo; if (methodInfo != null) { MethodInfos.Add(methodInfo); } }
public void Advise(MethodInfoAdviceContext context) { }