Indicates the result of applying an advice (code transformation). This enum is returned via Outcome by all advice methods to indicate whether the transformation succeeded, was ignored, or encountered an error.
Namespace: Metalama.Framework.Advising
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public enum AdviceOutcomeFields
| Name | Description |
|---|---|
| Default | Synonym to Success. |
| Error | An error diagnostic was reported during advice application. The advice was ignored and the whole aspect was automatically skipped. The BuildAspect(IAspectBuilder<T>) method continues executing without throwing an exception; check Outcome to detect errors and handle them appropriately. |
| Ignore | The advice was ignored due to a conflict or OverrideStrategy settings. Common scenarios include: a member with the same signature already exists and the OverrideStrategy prevents overriding it, or another aspect with higher priority already introduced the same member. |
| New | There was a conflict and the advice was successfully applied and the new advice hides the previous declaration with the |
| Override | There was a conflict and the advice was successfully applied and the new advice overrides the previous declaration. |
| Success | The advice was successfully applied and there was no conflict. |