PostSharp SDK 6.7 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Weaver Namespace / Advice­Weaver Class

AdviceWeaver Class

An object that knows how to process a specific advice. Advice weavers must be associated to advice custom attributes using BindAdviceWeaver<TAttribute, TImpl>(). An AdviceWeaver is associated with a concrete advice type and is independent from advice usage, i.e. independent from the AspectWeaverInstance.
Inheritance Hierarchy
System.Object
  PostSharp.Sdk.AspectWeaver.AdviceWeaver
    PostSharp.Sdk.AspectWeaver.GroupingAdviceWeaver

Namespace:  PostSharp.Sdk.AspectWeaver
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.7.10.0 (6.7.10.0)
Syntax
C#
public abstract class AdviceWeaver

The AdviceWeaver type exposes the following members.

Constructors
  NameDescription
Protected methodAdviceWeaver
Initializes a new instance of the AdviceWeaver class
Properties
  NameDescription
Public propertyAdviceGroups
Public propertyAspectWeaver
Gets the parent AspectWeaver.
Public propertyDefaultLinesOfCodeAvoided
Public propertyRequiresRuntimeInstance
Determines whether the current AdviceWeaver requires an instance of the aspect at runtime.
Public propertyRequiresRuntimeReflectionObject
Determines whether the current AdviceWeaver requires a reflection object representing the target of the aspect.
Methods
  NameDescription
Protected methodCreateAdviceGroup
Creates an empty AdviceGroup where advices handled by the current AdviceWeaver will be added.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodGetGroupingKey
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodInitialize
Initializes the current AdviceWeaver.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodValidateAdvice
Validates an advice annotation.
See Also