Open sandboxFocus

Class AspectSpecification

Completely specifies an aspect instance (but not its target). An AspectSpecification contains either the aspect instance itself (Aspect property), or the information needed to construct the aspect (AspectConstruction) and to configure the weaver (AspectConfiguration).

Inheritance
AspectSpecification
Namespace: PostSharp.Aspects
Assembly: PostSharp.dll
Syntax
public class AspectSpecification
Remarks

User code cannot create an instance of the AspectSpecification class. Always create an instance of AspectInstance instead.

Constructors

Name Description
AspectSpecification(ObjectConstruction, AspectConfiguration)

Initializes a new instance of the AspectSpecification class when the caller cannot provide an aspect instance, that is, from an ObjectConstruction and an AspectConfiguration.

Properties

Name Description
Aspect

Gets the aspect instance.

AspectAssemblyQualifiedTypeName

Gets the assembly-qualified type name of the aspect.

AspectConfiguration

Gets the aspect configuration.

AspectConstruction

Gets the aspect construction.

AspectTypeName

Gets the type name of the aspect.