Hope this helps Although the use of attributes to enrich types with metadata to feed cross-cutting concerns with data to use isn't bad, the use of attributes to mark classes or methods to run some cross-cutting concern usually is. Marking code with the attribute like you shown has some serious downsides:
Autofac method level interception with Castle DynamicProxy in .NET Core 2
By : Kim Chan
Date : March 29 2020, 07:55 AM
To fix the issue you can do The invocation parameter of the Intercept method contains a Method property which is a MethodInfo of the method currently intercepted. You can use this property to do what you want.