Design Pattern Examples
Overview of object-oriented design patterns
IEventNotifications Interface Reference

Represents a Subject that takes observers implementing the IObserverNumberChanged interface. More...

Inheritance diagram for IEventNotifications:
Inheritance graph
Collaboration diagram for IEventNotifications:
Collaboration graph

Public Member Functions

void SubscribeToNumberChanged (IObserverNumberChanged observer)
 
void UnsubscribeFromNumberChanged (IObserverNumberChanged observer)
 

Detailed Description

Represents a Subject that takes observers implementing the IObserverNumberChanged interface.

In more complex systems, an interface like this might have multiple subscribe/unsubscribe methods for different kinds of observers. For C#, such multiple methods might actually be one Subscribe/Unsubscribe method that uses overloading to take different observer interfaces.

This interface is use to ensure the Subject implements all the necessary methods to support observers.

Definition at line 61 of file ObserverSubject_NumberProducer.cs.

Member Function Documentation

◆ SubscribeToNumberChanged()

void SubscribeToNumberChanged ( IObserverNumberChanged  observer)

◆ UnsubscribeFromNumberChanged()

void UnsubscribeFromNumberChanged ( IObserverNumberChanged  observer)

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