IMethodInvocation
NexusLabs.Needlr¶
NexusLabs.Needlr¶
IMethodInvocation Interface¶
Represents a method invocation that is being intercepted. Provides access to the target instance, method metadata, and arguments.
Derived
↳ MethodInvocation
Properties¶
IMethodInvocation.Arguments Property¶
Gets the arguments passed to the method. The array can be modified to change argument values before calling ProceedAsync().
Property Value¶
IMethodInvocation.GenericArguments Property¶
Gets the generic type arguments if the method is a generic method. Returns an empty array for non-generic methods.
Property Value¶
IMethodInvocation.Method Property¶
Gets metadata about the method being invoked.
Property Value¶
IMethodInvocation.Target Property¶
Gets the target service instance on which the method is being invoked.
Property Value¶
Methods¶
IMethodInvocation.ProceedAsync() Method¶
Proceeds to the next interceptor in the chain, or to the actual method implementation if this is the last interceptor.
Returns¶
System.Threading.Tasks.ValueTask<System.Object>
The result of the method (or the result from the next interceptor).
Returns null for void methods.