IEvent

An interface for Events that can send asynchronious notifications to multiple subscribed listeners.

Inherits: INotifiable

Description

The IEvent interface allows you to define events that can send asynchronous notifications to multiple subscribed listeners.

Properties

Name

Gets the name of the event.

public string Name [ get ]

Listeners

Gets all listeners registered in this event.

public List<IEventListener> Listeners [ get ]

Instance methods

AddListener

Adds a listener to receive notifications for this event.

void AddListener(IEventListener listener)

removeListener

Removes a listener, so that it no longer receives notifications for this event.

void RemoveListener(IEventListener listener)

See also