PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Model Namespace / IAggregatable­Dependent­Advice(T) Interface

IAggregatableDependentAdvice<T> Interface

Defines the semantics of advices that depend on the aggregatable dynamic advices, i.e. they must be able to react to attachment and detachment events.

Namespace:  PostSharp.Patterns.Model
Assembly:  PostSharp.Patterns.Aggregation (in PostSharp.Patterns.Aggregation.dll) Version: 2023.0.3.0 (2023.0.3.0)
public interface IAggregatableDependentAdvice<T> : IDynamicAdvice, 

Type Parameters

Item types.

The IAggregatableDependentAdvice<T> type exposes the following members.

Public propertyAdvisedObject
Gets the principal object for which the current object is an indirect interface implementation.
(Inherited from IDynamicInterfaceImplementation.)
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
(Inherited from IDynamicAdvice.)
Public propertyOrder
Gets the execution order of the dynamic advice. See DynamicAdviceOrder.
(Inherited from IDynamicAdvice.)
Public methodDispose
Disposes the current advice. // We don't use IDisposable so that advises are not be cast to IDisposable by default.
(Inherited from IDynamicAdvice.)
Public methodInitialize
Initializes the current advice.
(Inherited from IDynamicAdvice.)
Public methodOnChildAttached
Method invoked when a child is attached to the parent.
Public methodOnChildDetached
Method invoked when a child is detached from the parent.
Public methodOnParentChanged
Method invoked when the parent changes.
Public methodQueryInterface<T>
Gets the implementation of an interface.
(Inherited from IDynamicAdvice.)
See Also