Specifies the kinds of relationships that aspect dependencies can express.
Namespace: PostSharp.Aspects.Dependencies
Assembly: PostSharp.dll
Syntax
public enum AspectDependencyActionRemarks
The combined values of AspectDependencyAction and AspectDependencyPosition are 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, and is positioned after it. |
| Require | Before | The current aspect or advice requires another aspect or advice matched by the custom attribute, and is positioned before it. |
| 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 the current one is positioned after it. |
| Conflict | Before | The current aspect or advice conflicts with any aspect or advice matched by the custom attribute, if the current one is positioned before it. |
| Commute | The current aspect or advice commutes with any other aspect or advice matched by the custom attribute. |
For every action, the position is that of the current aspect or advice with respect to the matched one.
For instance, Conflict with After on an authorization aspect reports an aspect that changes the control flow
and runs before the authorization aspect.
An unsatisfied Require or Conflict dependency causes a build error, or a warning if IsWarning is set.
Fields
| Name | Description |
|---|---|
| Commute | The dependency specifies that the current aspect or advice commutes with another aspect or advice. |
| Conflict | The dependency specifies that the current aspect or advice conflicts with another aspect or advice. |
| None | The dependency is ignored. |
| Order | The dependency specifies an order relationship. |
| Require | The dependency specifies that the current aspect or advice requires another aspect or advice. |