SecondaryInstances
Gets the other instances of the same AspectClass on the same TargetDeclaration. When several instances of the same AspectClass are found on the same TargetDeclaration, they are ordered by priority, and only the first one (the primary instance) gets executed. The other instances are exposed on this property.
Declaration
ImmutableArray<IAspectInstance> SecondaryInstances { get; }Property Value
| Type | Description |
|---|---|
| ImmutableArray<IAspectInstance> |
Remarks
Priority ordering (highest to lowest):
- Aspects defined using a custom attribute directly on the declaration
- Aspects added by another aspect as child aspects
- Aspects inherited from base declarations
- Aspects added by fabrics
The aspect implementation is responsible for handling secondary instances if needed, typically by examining their properties or state and incorporating that information into the primary instance's behavior.