Add RX variance to Stocks example on Observer pattern
This commit is contained in:
@@ -19,12 +19,22 @@ namespace ObserverPattern
|
||||
StockUpdateEventsExample stockExample = new StockUpdateEventsExample();
|
||||
stockExample.RunSimple();
|
||||
|
||||
GoToNextStep();
|
||||
Console.WriteLine("Same business logic using RX");
|
||||
stockExample.RunReactive();
|
||||
GoToNextStep();
|
||||
|
||||
Console.WriteLine(GetLapsedLinstenerProblem());
|
||||
|
||||
GoToNextStep();
|
||||
|
||||
Console.WriteLine("Same business logic using events combined with RX library");
|
||||
stockExample.RunReactiveWithEvents();
|
||||
|
||||
GoToNextStep();
|
||||
|
||||
Console.WriteLine("Same business logic using RX library");
|
||||
stockExample.RunReactive();
|
||||
|
||||
GoToNextStep();
|
||||
|
||||
ObservableTwitsExample obsTwits = new ObservableTwitsExample();
|
||||
obsTwits.Run();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user