AspectDependency Class |
Represent a dependency relationships between aspects, advices or more generally
any object implementing IAspectDependencyObject.
System.Object
PostSharp.Sdk.AspectInfrastructure.AspectDependency
PostSharp.Sdk.AspectInfrastructure.Dependencies.ProvideAspectRoleDependency
PostSharp.Sdk.AspectWeaver.Dependencies.ProvidedByAdviceDependency
PostSharp.Sdk.AspectInfrastructure.AspectDependency
PostSharp.Sdk.AspectInfrastructure.Dependencies.ProvideAspectRoleDependency
PostSharp.Sdk.AspectWeaver.Dependencies.ProvidedByAdviceDependency
Namespace: PostSharp.Sdk.AspectInfrastructure
Assembly: PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public class AspectDependency
The AspectDependency type exposes the following members.
Name | Description | |
---|---|---|
AspectDependency(AspectDependencyAction, AspectDependencyCondition) |
Initializes a new AspectDependency with default (Any)
position.
| |
AspectDependency(AspectDependencyAction, AspectDependencyPosition, AspectDependencyCondition) |
Initializes a new AspectDependency with the given position.
| |
AspectDependency(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.
|
Name | Description | |
---|---|---|
Action |
Gets the kind of relationship represented by the current AspectDependency.
| |
Condition |
Gets the condition determining whether a pair of objects matches the current relationship.
| |
IsWarning |
Determines whether a violation of the current dependency rule should result in a warning
instead of an error.
| |
Position |
Gets the position of the right member of the current relationship with respect to the
left member.
|
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Overrides Object.ToString().) |