Open sandboxFocus

Interface IConfiguredTemplateInterception

The result of one call site whose call is 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 ForEachSite(Func<IMethodInterceptionSite, IMethodInterception>) can return. IConfiguredTemplateRegistration is its counterpart for a result that applies to every call site.

Namespace: Metalama.Extensions.Interceptors
Assembly: Metalama.Extensions.Interceptors.dll
Syntax
[CompileTime]
[InternalImplement]
public interface IConfiguredTemplateInterception : IMethodInterception
Remarks

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>).

Extension Methods