PostSharpAPI ReferencePost­Sharp.​Aspects.​DependenciesAspect­Type­Dependency­AttributeAspect­Type­Dependency­Attribute
Open sandboxFocus

Constructor AspectTypeDependencyAttribute

AspectTypeDependencyAttribute(AspectDependencyAction, AspectDependencyPosition, Type)

Initializes a new AspectTypeDependencyAttribute and specifies a position.

Declaration
public AspectTypeDependencyAttribute(AspectDependencyAction action, AspectDependencyPosition position, Type aspectType)
Parameters
Type Name Description
AspectDependencyAction action

Dependency action.

AspectDependencyPosition position

Dependency position.

Type aspectType

Aspect type (derived from IAspect).

AspectTypeDependencyAttribute(AspectDependencyAction, Type)

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

Declaration
public AspectTypeDependencyAttribute(AspectDependencyAction action, Type aspectType)
Parameters
Type Name Description
AspectDependencyAction action

Dependency action.

Type aspectType

Aspect type (derived from IAspect).