A registration whose calls are redirected to an existing method, created by RedirectToExistingMethod(IMethod).
It is a complete interception, which the delegate given to InterceptMethods can return. It is the counterpart of
IExistingMethodInterception for a result that applies to every call site.
Namespace: Metalama.Extensions.Interceptors
Assembly: Metalama.Extensions.Interceptors.dll
Syntax
[CompileTime]
[InternalImplement]
public interface IExistingMethodRegistration : IMethodInterceptionRemarks
The registration is kept across compilations, so its arguments must be durable. The arguments are resolved in the compilation of each call site.
Methods
| Name | Description |
|---|---|
| WithArgs(object) | Sets the arguments that bind parameters and type parameters of the existing method by name. |