Update observer pattern description

This commit is contained in:
Petrutiu Mihai
2016-06-28 18:08:25 +03:00
parent 55ed135ee1
commit 8d7babb645
2 changed files with 5 additions and 3 deletions

View File

@@ -64,8 +64,10 @@ They simply communicate with the help of message queues.
private static string GetActors() private static string GetActors()
{ {
return @" return @"
Subject -> Notifies interested observers when an event occurs Subject -> Interface/Abstract Notifies interested observers when an event occurs
Observer -> Registers to a subject, to be notified when a specific event happens Concrete Subject -> Implementation of Subject
Observer -> Interface/Abstract class -> Registers to a subject, to be notified when a specific event happens
Concrete Observer -> Implementation of the observer
"; ";
} }

View File

@@ -4,7 +4,7 @@ using System.Reactive.Subjects;
namespace ObserverPattern.StockUpdateEvents namespace ObserverPattern.StockUpdateEvents
{ {
/// <summary> /// <summary>
/// Subject /// Subject to be observed
/// </summary> /// </summary>
public class StockSubject public class StockSubject
{ {