Add RX variance to Stocks example on Observer pattern

This commit is contained in:
Petrutiu Mihai
2016-06-28 17:59:13 +03:00
parent 5d639bf0ab
commit 55ed135ee1
4 changed files with 58 additions and 9 deletions

View File

@@ -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();