Update observer pattern description
This commit is contained in:
@@ -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
|
||||||
";
|
";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user