Specifies an aspect dependency matching an advice of the same aspect instance.
Namespace: PostSharp.Aspects.Dependencies
Assembly: PostSharp.dll
Syntax
public sealed class AdviceDependencyAttribute : AspectDependencyAttributeRemarks
Apply this custom attribute to an advice method of a composite aspect to order this advice with respect to another advice of the same aspect instance, designated by the name of its method. To order an aspect or advice with respect to other aspects, use the other custom attributes derived from AspectDependencyAttribute.
Constructors
| Name | Description |
|---|---|
| AdviceDependencyAttribute(AspectDependencyAction, AspectDependencyPosition, string) | Initializes a new instance of the AdviceDependencyAttribute class and specifies a position. |
| AdviceDependencyAttribute(AspectDependencyAction, string) | Initializes a new instance of the AdviceDependencyAttribute class without specifying the position. The position is implicitly Any. |
Properties
| Name | Description |
|---|---|
| AdviceMethodName | Gets the name of the method that implements the advice. |