C H A P T E R 3
Core Rx
As noted in previous chapters, Reactive Extensions (Rx) is an extension of LINQ. The key, distinguishing feature of Rx is that rather than being based on IEnumerable
, Rx is based on IObservable
—that is, the interface for iterating over an observable collection. This, in turn is based on the Observer design pattern as described in Design Patterns.1
The essence of the Observer pattern is that the observable object (sometimes called the subject) has actions or properties of interest to one or more observers. When the observable changes in a way that might be of interest to the observers, it notifies them (typically by raising an event).
The nomenclature can be confusing because the Observer pattern is a subset of the Publish ...
Get Programming Reactive Extensions and LINQ now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.