Describes the semantics of a service through which a child IAggregatable object can attach itself to a parent object. This interface is typically implemented by the parent object by composition.
Namespace: PostSharp.Patterns.Model
Assembly: PostSharp.Patterns.Aggregation.dll
Syntax
public interface IAttacher
Remarks
This interface should typically not be used or implemented in user code.
Methods
Name | Description |
---|---|
AttachChild(object, object, ChildInfo) | Attach an object as a child of the current node. |
DetachChild(object, object, ChildInfo) | Detaches an object as a child of the current node. |
GetNode(object) | Gets the underlying object instance which is subject to the current attacher. The instance is the aggregatable node that participates in the parent-child relationships with other objects. |
OnChildAttached(object, object, object, ChildInfo) | Method invoked after a child has been successfully attached to the current node. |
OnChildDetached(object, object, object, ChildInfo) | Method invoked when a child has been detached from the current node. |