Metalama 1.0 / / Metalama Documentation / Aspect API Documentation / Metalama.​Framework.​Aspects / Aspect­Order­Attribute

Class AspectOrderAttribute

Custom attribute that specifies the order of run-time execution of aspects or aspect layers.

Inheritance
AspectOrderAttribute
Namespace: Metalama.Framework.Aspects
Assembly: Metalama.Framework.dll
Syntax
public class AspectOrderAttribute : Attribute
Remarks

Note that, at compile-time, aspects are applied in the reverse order compared to the run-time execution order.

Constructors

Name Description
AspectOrderAttribute(String[])

Initializes a new instance of the AspectOrderAttribute class that specified the order of execution of aspect layers. This constructor allows to specify the order of execution of individual layers.

AspectOrderAttribute(Type[])

Initializes a new instance of the AspectOrderAttribute class that specifies the order of execution of aspects. This constructor does not allow multi-layer aspects to overlap each other. If aspects are composed of several layers, all layers of each aspect are ordered as a single group. To order layers individually, use the other constructor.

Properties

Name Description
OrderedAspectLayers

Gets the ordered list of aspect layers, in the format specified the constructor documentation.

Extension Methods

PresentingExtensions.AsHyperlink(Object)

See Also