Closed leandro86 closed 6 years ago
Thanks 👍
@leandro86 FYI I have changed the name to TargetMethod
. Version 2.0.2 has been pushed to NuGet and should be available when the package is validated 👍
Great! I wasn't really sure about the name myself.
Hi!
I was trying to address this issue: https://github.com/seesharper/LightInject.Interception/issues/17
It seemed to me that it would be nice to have access, inside IInvocationInfo, to the target method of the concrete class, if the proxy is an interface: like Castle's Dynamic proxy allows to do (see property MethodInvocationTarget on https://github.com/castleproject/Core/blob/master/src/Castle.Core/DynamicProxy/IInvocation.cs).
With this change, now I can test, inside the interceptor, for a custom attribute in the class:
I doubt my implementation is correct: let me know if there's something that it could be done better.
Thanks!