PostSharpAPI ReferencePost­Sharp.​Patterns.​ModelIAggregatable­Dependent­Advice<T>
Open sandboxFocus

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.dll
Syntax
public interface IAggregatableDependentAdvice<T> : IDynamicAdvice, IDynamicInterfaceImplementation
Type Parameters
Name Description
T

Item types.

Methods

Name Description
OnChildAttached(T, AdviceEnumerator<IAggregatableDependentAdvice<T>>)

Method invoked when a child is attached to the parent.

OnChildDetached(T, AdviceEnumerator<IAggregatableDependentAdvice<T>>)

Method invoked when a child is detached from the parent.

OnParentChanged(AdviceEnumerator<IAggregatableDependentAdvice<T>>)

Method invoked when the parent changes.