Metalama 1.0 / / Metalama Documentation / Aspect API / Metalama.​Framework.​Aspects / Compilation­Aspect

Class CompilationAspect

A base class for aspects that can be applied the compilation as custom attributes (using the [assembly: MyAspect] syntax).

Inheritance
CompilationAspect
Namespace: Metalama.Framework.Aspects
Assembly: Metalama.Framework.dll
Syntax
public abstract class CompilationAspect : Aspect, IAspect<ICompilation>, IAspect, ICompileTimeSerializable, IEligible<ICompilation>
Remarks

This class is a redundant helper class. The aspect framework only respects the IAspect<T> interface.

Constructors

Name Description
CompilationAspect()

Methods

Name Description
BuildAspect(IAspectBuilder<ICompilation>)

Initializes the aspect. The implementation must add advice, child aspects and validators using the builder parameter.

BuildEligibility(IEligibilityBuilder<ICompilation>)

Configures the eligibility of the aspect or attribute. Implementations are not allowed to reference non-static members. Implementations must call the implementation of the base class if it exists.