Open sandboxFocus

Interface IMethodInterceptionSite

One call site in the delegate given to ForEachSite(Func<IMethodInterceptionSite, IMethodInterception>). It describes the site, through the members of IMethodInterceptionContext, and creates the result of the site.

Namespace: Metalama.Extensions.Interceptors
Assembly: Metalama.Extensions.Interceptors.dll
Syntax
[CompileTime]
[InternalImplement]
public interface IMethodInterceptionSite : IMethodResultFactory, IMethodInterceptionContext, IInterceptionContext
Remarks

This object must not be stored after the delegate returns.

Methods

Name Description
Skip()

Leaves the call site unchanged for this registration. Other registrations for the same site are still evaluated. To explain a skip, report a diagnostic through Diagnostics.

Extension Methods