O'Reilly logo

Programming Reactive Extensions and LINQ by Paul Betts, Jesse Liberty

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required