Ordering Aspects
In the documentation it states:
'Aspects must be ordered using the AspectOrderAttribute assembly-level custom attribute. The order of the aspect classes in the attribute corresponds to their order of execution.
using Metalama.Framework.Aspects;
[assembly: AspectOrder( typeof(Aspect1), typeof(Aspect2), typeof(Aspect3))] '
From that I read this as meaning that Aspect1 will be executed, after which Aspect 2 will be executed after which Aspect 3 will be executed.
This is the Log output from a sample I have built, reversing the execution of the Aspects:
The bit that is of interest is at the bottom of both logs, which, to me at least makes no sense if the statement in the docs is accurate.
'Aspects must be ordered using the AspectOrderAttribute assembly-level custom attribute. The order of the aspect classes in the attribute corresponds to their order of execution.
using Metalama.Framework.Aspects;
[assembly: AspectOrder( typeof(Aspect1), typeof(Aspect2), typeof(Aspect3))] '
From that I read this as meaning that Aspect1 will be executed, after which Aspect 2 will be executed after which Aspect 3 will be executed.
This is the Log output from a sample I have built, reversing the execution of the Aspects:
The bit that is of interest is at the bottom of both logs, which, to me at least makes no sense if the statement in the docs is accurate.