PostSharp 6.9 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Model Namespace / IAttacher Interface

IAttacher Interface

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 (in PostSharp.Patterns.Aggregation.dll) Version: (
public interface IAttacher

The IAttacher type exposes the following members.

Public methodAttachChild
Attach an object as a child of the current node.
Public methodDetachChild
Detaches an object as a child of the current node.
Public methodGetNode
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.
Public methodOnChildAttached
Method invoked after a child has been successfully attached to the current node.
Public methodOnChildDetached
Method invoked when a child has been detached from the current node.

This interface should typically not be used or implemented in user code.

See Also