ArxOne/MrAdvice

StackTraceHiddenAttribute

rgroenewoudt opened this issue · 0 comments

.NET 6 has a new StackTraceHiddenAttribute which allow methods to be hidden.

We use MrAdvice a lot and as a result we see this very often in the stacktrace:

at ArxOne.MrAdvice.Advice.InnerMethodContext.Invoke()
at ArxOne.MrAdvice.Advice.SyncAdviceContext.Proceed()
--- Our own attribute.Advice() here ---
at ArxOne.MrAdvice.Advice.MethodAdviceContext.Invoke()
at ArxOne.MrAdvice.Invocation.ProceedAdvice2(Object target, Object[] parameters, RuntimeMethodHandle methodHandle, RuntimeMethodHandle innerMethodHandle, RuntimeMethodHandle delegatableMethodHandle, RuntimeTypeHandle typeHandle, Boolean abstractedTarget, Type[] genericArguments)
at ArxOne.MrAdvice.⚡Invocation.ProceedAspect(Object , Object[] , RuntimeMethodHandle , RuntimeMethodHandle , RuntimeMethodHandle )

It would be nice if these methods have StackTraceHiddenAttribute so that they don't show up in the stacktrace, making it smaller.