AspectDependencyAction Enumeration |
Namespace: PostSharp.Aspects.Dependencies
Assembly: PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
public enum AspectDependencyAction
Member name | Value | Description | |
---|---|---|---|
None | 0 | The dependency is ignored. | |
Order | 1 | The dependency specifies an order relationship. | |
Require | 2 | The dependency specifies that the current aspect or advice requires another aspect or advice. | |
Conflict | 3 | The dependency specifies that the current aspect or advice conflicts with another aspect or advice. | |
Commute | 4 | The dependency specifies that the current aspect or advice commutes with another aspect or advice. |
The combined values of AspectDependencyAction and AspectDependencyPosition is interpreted as follows:
Action | Position | Description |
---|---|---|
Order | After | The current aspect or advice should be positioned after the other aspect or advice matched by the custom attribute. |
Order | Before | The current aspect or advice should be positioned before the other aspect or advice matched by the custom attribute. |
Require | Any | The current aspect or advice requires another aspect or advice matched by the custom attribute, at any position. |
Require | After | The current aspect or advice requires another aspect or advice matched by the custom attribute positioned after the current one. |
Require | Before | The current aspect or advice requires another aspect or advice matched by the custom attribute positioned before the current one. |
Conflict | Any | The current aspect or advice conflicts with any aspect or advice matched by the custom attribute, at any position. |
Conflict | After | The current aspect or advice conflicts with any aspect or advice matched by the custom attribute, if positioned after the current one. |
Conflict | Before | The current aspect or advice conflicts with any aspect or advice matched by the custom attribute, if positioned before the current one. |
Commute | The current aspect or advice commute with any other aspect or advice matched by the custom attribute. |