Class Aspect
Base class for all aspects that are declared using multicast custom attributes (MulticastAttribute).
Inheritance
Namespace: PostSharp.Aspects
Assembly: PostSharp.dll
Syntax
[AspectConfigurationAttributeType]
[Serializer]
public abstract class Aspect : MulticastAttribute, IAspect, IAspectBuildSemantics, IValidableAnnotation
Constructors
Name | Description |
---|---|
Aspect() |
Properties
Name | Description |
---|---|
AspectPriority | Gets or sets the weaving priority of the aspect. |
SerializerType | Gets or sets the Type of the serializer (a type derived from AspectSerializer) used to serialize the aspect instance at build time and deserialize it at runtime. |
UnsupportedTargetAction | Specifies the action to take when the aspect is applied to an unsupported target element. This property affects only simple aspects, not composite aspects. |
Methods
Name | Description |
---|---|
CompileTimeValidate(Object) | Method invoked at build time to ensure that the aspect has been applied to the right target. |
CreateAspectConfiguration() | Method invoked at build time to create a concrete AspectConfiguration instance specifically for the current Aspect type. |
GetAspectConfiguration(Object) | Method invoked at build tome to get the imperative configuration of the current Aspect. |
SetAspectConfiguration(AspectConfiguration, Object) | Method invoked at build time to set up an AspectConfiguration object according to the current Aspect instance and a specified target element of the current aspect. |
Explicit Interface Implementations
Name | Description |
---|---|
IValidableAnnotation.CompileTimeValidate(Object) |