Ejemplo n.º 1
0
        private AdviceContext BuildAdviceContextFor(MethodInfo method, Stack<IAdvice> advice, object[] arguments)
        {
            AdviceContext adviceContext = null;
            adviceContext = new AdviceContext(() => advice.Pop().Execute(adviceContext), this, _realSubject, method, arguments);

            return adviceContext;
        }
Ejemplo n.º 2
0
 public void Execute(AdviceContext context)
 {
     context.ReturnValue = _method.Invoke(context.Target, context.Arguments);
 }