MetalamaAPI documentationAspect APIMetalama.​Framework.​AspectsConstructor­Aspect
Open sandboxFocus

ConstructorAspect Class

A base class for aspects that can be applied to constructors as custom attributes.

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

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

Constructors

Name Description
ConstructorAspect()

Methods

Name Description
BuildAspect(IAspectBuilder<IConstructor>)

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

BuildEligibility(IEligibilityBuilder<IConstructor>)

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.