当前位置: 动力学知识库 > 问答 > 编程问答 >

c# - Accessing method arguments in Spring.net AOP advice

问题描述:

I am attempting my first implementation of IAfterReturningAdvice and am wondering how I access the values of the method or if that is even possible? It makes sense that I may have to use around advice to acheive this since I don't have access to the IMethodInvocation.

Thanks in advance.

网友答案:

Just in case someone reads this post later and needs an answer. The answer is that the args[] array contains the arguments passed into the intercepted method.

分享给朋友:
您可能感兴趣的文章:
随机阅读: