Metalama (preview)API documentationAspect APIMetalama.​Framework.​AspectsAspect­Order­Attribute
Open sandboxFocus

AspectOrderAttribute Class

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

Inheritance
AspectOrderAttribute
Namespace: Metalama.Framework.Aspects
Assembly: Metalama.Framework.dll
Syntax
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public sealed class AspectOrderAttribute : Attribute

Constructors

Name Description
AspectOrderAttribute(AspectOrderDirection, params 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(AspectOrderDirection, params 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.

AspectOrderAttribute(params string[])
AspectOrderAttribute(params Type[])

Properties

Name Description
ApplyToDerivedTypes

Gets or sets a value indicating whether the relationships should apply to derived aspect types. The default value is true.

Direction
OrderedAspectLayers

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

See Also