PostSharp6.1/API Reference/Post­Sharp.​Patterns.​Dynamic­Advising Namespace/Dynamic­Advice Class

DynamicAdvice Class

A base implementation of the IDynamicAdvice interface.
Inheritance Hierarchy

Namespace:  PostSharp.Patterns.DynamicAdvising
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.1.23.0 (6.1.23.0)
Syntax
C#
public abstract class DynamicAdvice : IDynamicAdvice, 
	IDynamicInterfaceImplementation

The DynamicAdvice type exposes the following members.

Constructors
  NameDescription
Protected methodDynamicAdvice
Initializes a new DynamicAdvice.
Properties
  NameDescription
Protected propertyAdvisedObject
Gets the advised object.
Public propertyIdentity
Gets the type identity of the advice, which should correspond to the first parameter of the Advise(Type, Func<IQueryInterface, IDynamicAdvice>) method. This is typically the generic type definition of the advice
Public propertyOrder
Gets the execution order of the dynamic advice. See DynamicAdviceOrder.
Methods
  NameDescription
Public methodDispose
Disposes the current advice. // We don't use IDisposable so that advises are not be cast to IDisposable by default.
Public methodInitialize
Initializes the current advice.
Public methodQueryInterface<TInterface>
See Also