Understanding Window: The Core Method

All of the Window and Buffer methods inherit from the Window method, which looks like the following:

public IObservable<IObservable<T>> Window(         this IObservable<T> source,         IObservable<TWindowOpening> windowOpenings,            Func<TWindowOpening, IObservable<TWindowClosing>> windowClosingSelector);

The Window method takes three parameters. The first is a source. The second is an Observable that fires when the Windows should open. The third is a Func that, given an open Window will determine when that Window should close.

The Rx framework provides nine overloads of Window and there are ten Buffer implementations (Buffer derives from Window). This is an extraordinarily flexible method; it ...

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.