A method interception whose calls are redirected to a method synthesized from a template, after the first call of
Configure(Action<IInterceptorMethodBuilder>). It is a complete interception, which the delegate given to InterceptMethods or to
ForEachSite(Func<IMethodInterceptionSite, IMethodInterception>) can return.
Namespace: Metalama.Extensions.Interceptors
Assembly: Metalama.Extensions.Interceptors.dll
Syntax
[CompileTime]
[InternalImplement]
public interface IConfiguredTemplateInterception : IMethodInterceptionRemarks
The other methods of ITemplateInterception, such as PlaceInCallingType() and WithArgs(object), must be called before Configure(Action<IInterceptorMethodBuilder>), because they determine the signature that the engine derives and that the IInterceptorMethodBuilder exposes to the delegates. This interface therefore only allows further calls of Configure(Action<IInterceptorMethodBuilder>).
Methods
| Name | Description |
|---|---|
| Configure(Action<IInterceptorMethodBuilder>) | Adds a delegate that shapes the synthesized method for each call site. See Configure(Action<IInterceptorMethodBuilder>). |