Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects.​Advices Namespace / On­Aspects­Initialized­Advice Class

OnAspectsInitializedAdvice Class

Custom attribute that, when applied to a method of an aspect class, specifies that this method should be invoked after the instances of all the aspects applied on the same target has been initialized. The target method must have a void return value and have a single parameter of type AspectInitializationReason.
Inheritance Hierarchy
System.Object
  System.Attribute
    PostSharp.Aspects.Advices.Advice
      PostSharp.Aspects.Advices.OnAspectsInitializedAdvice

Namespace:  PostSharp.Aspects.Advices
Assembly:  PostSharp (in PostSharp.dll) Version: 5.0.38.0 (5.0.38.0)
Syntax
C#
public sealed class OnAspectsInitializedAdvice : Advice

The OnAspectsInitializedAdvice type exposes the following members.

Constructors
  NameDescription
Public methodOnAspectsInitializedAdvice
Initializes a new instance of the OnAspectsInitializedAdvice class
Properties
  NameDescription
Public propertyDescription
A human-readable description of the current advice.
(Inherited from Advice.)
Public propertyLinesOfCodeAvoided
Reduction in the code lines count achieved by applying the advice instance to one code element.
(Inherited from Advice.)
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
Remarks
See Also