Piccolo.NET

PNotificationCenter Class

PNotificationCenter provides a way for objects that don’t know about each other to communicate.

For a list of all members of this type, see PNotificationCenter Members.

System.Object
   PNotificationCenter

public class PNotificationCenter

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

This class receives PNotification objects and broadcasts them to all interested listeners. Unlike standard C# events, the event handlers don't need to know about the event source, and the event source doesn't need to maintain event delegates.

Listeners of the notfications center are held by weak references. So the notfication center will not create garbage collection problems as standard event listeners do.

Requirements

Namespace: UMD.HCIL.PiccoloX.Events

Assembly: UMD.HCIL.PiccoloX (in UMD.HCIL.PiccoloX.dll)

See Also

PNotificationCenter Members | UMD.HCIL.PiccoloX.Events Namespace