AdviceDependencyAttribute(AspectDependencyAction, AspectDependencyPosition, string)
Initializes a new instance of the AdviceDependencyAttribute class and specifies a position.
Declaration
public AdviceDependencyAttribute(AspectDependencyAction action, AspectDependencyPosition position, string adviceMethodName)Parameters
| Type | Name | Description |
|---|---|---|
| AspectDependencyAction | action | The dependency action. |
| AspectDependencyPosition | position | The dependency position. |
| string | adviceMethodName | The name of the advice method. |
AdviceDependencyAttribute(AspectDependencyAction, string)
Initializes a new instance of the AdviceDependencyAttribute class without specifying the position. The position is implicitly Any.
Declaration
public AdviceDependencyAttribute(AspectDependencyAction action, string adviceMethodName)Parameters
| Type | Name | Description |
|---|---|---|
| AspectDependencyAction | action | The dependency action. |
| string | adviceMethodName | The name of the advice method. |