AspectDependency Constructor (AspectDependencyAction, AspectDependencyPosition, AspectDependencyCondition, Boolean) |
Initializes a new AspectDependency with the given position and specifies whether
a violation of this dependency rule should result in a warning instead of an error.
Namespace: PostSharp.Sdk.AspectInfrastructure
Assembly: PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public AspectDependency( AspectDependencyAction action, AspectDependencyPosition position, AspectDependencyCondition condition, bool isWarning )
Parameters
- action
- Type: AspectDependencyAction
The kind of aspect dependency. - position
- Type: AspectDependencyPosition
The direction of the dependency (i.e. position of the right object with respect to the left object). - condition
- Type: PostSharp.Sdk.AspectInfrastructure.AspectDependencyCondition
An object evaluating whether a pair of objects is affected by the current AspectDependency. - isWarning
- Type: System.Boolean
true if a violation of this dependency rule should result in a warning, false if it should result in an error.