PostSharp.ILAPI ReferencePost­Sharp.​Patterns.​ModelIAttacher
Open sandboxFocus

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.dll
Syntax
public interface IAttacher

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.