PostSharp//API Reference/Post­Sharp.​Aspects.​Dependencies/Aspect­Dependency­Attribute/Aspect­Dependency­Attribute
Open sandboxFocus

Constructor AspectDependencyAttribute

AspectDependencyAttribute(AspectDependencyAction)

Initializes a new AspectDependencyAttribute without specifying the position, implicitly set to Any.

Declaration
protected AspectDependencyAttribute(AspectDependencyAction action)
Parameters
Type Name Description
AspectDependencyAction action

Dependency action.

AspectDependencyAttribute(AspectDependencyAction, AspectDependencyPosition)

Initializes a new AspectDependencyAttribute and specifies a position.

Declaration
protected AspectDependencyAttribute(AspectDependencyAction action, AspectDependencyPosition position)
Parameters
Type Name Description
AspectDependencyAction action

Dependency action.

AspectDependencyPosition position

Dependency position.