Pip-Services-Commons-Dotnet
Public Member Functions | Properties | List of all members
PipServices3.Commons.Commands.IEvent Interface Reference

An interface for Events, which are part of the Command design pattern. Events allows to send asynchronous notifications to multiple subscribed listeners. More...

Inheritance diagram for PipServices3.Commons.Commands.IEvent:
PipServices3.Commons.Run.INotifiable PipServices3.Commons.Commands.Event

Public Member Functions

void AddListener (IEventListener listener)
 Adds a listener to receive notifications for this event. More...
 
void RemoveListener (IEventListener listener)
 Removes a listener, so that it no longer receives notifications for this event. More...
 
- Public Member Functions inherited from PipServices3.Commons.Run.INotifiable
Task NotifyAsync (string correlationId, Parameters args)
 Notifies the component about occured event. More...
 

Properties

string Name [get]
 Gets the event name. More...
 
List< IEventListenerListeners [get]
 Gets the listeners that receive notifications for this event. More...
 

Detailed Description

An interface for Events, which are part of the Command design pattern. Events allows to send asynchronous notifications to multiple subscribed listeners.

See IEventListener

Member Function Documentation

◆ AddListener()

void PipServices3.Commons.Commands.IEvent.AddListener ( IEventListener  listener)

Adds a listener to receive notifications for this event.

Parameters
listenerthe listener reference to add.

Implemented in PipServices3.Commons.Commands.Event.

◆ RemoveListener()

void PipServices3.Commons.Commands.IEvent.RemoveListener ( IEventListener  listener)

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

Parameters
listenerthe listener reference to remove.

Implemented in PipServices3.Commons.Commands.Event.

Property Documentation

◆ Listeners

List<IEventListener> PipServices3.Commons.Commands.IEvent.Listeners
get

Gets the listeners that receive notifications for this event.

◆ Name

string PipServices3.Commons.Commands.IEvent.Name
get

Gets the event name.


The documentation for this interface was generated from the following file: