Open sandboxFocus

Class EventAspect

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

Inheritance
EventAspect
Namespace: Metalama.Framework.Aspects
Assembly: Metalama.Framework.dll
Syntax
[AttributeUsage(AttributeTargets.Event)]
public abstract class EventAspect : Aspect, IAspect<IEvent>, IAspect, ICompileTimeSerializable, ITemplateProvider, IEligible<IEvent>
Remarks

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

Constructors

Name Description
EventAspect()

Methods

Name Description
BuildAspect(IAspectBuilder<IEvent>)

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

BuildEligibility(IEligibilityBuilder<IEvent>)

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.