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

Example: Programming Asynchronous Interactions With Rx

We're going to build a small program called BingImageSearchDemo to demonstrate how FromAsyncPattern can be used in a practical application.

BingImageSearchDemo allows a user to type a phrase into the search box with the results displaying matching images from Bing, as shown in Figure 4-1. The images are retrieved asynchronously and placed into an observable collection.

images

Figure 4-1. The sample program BingImageSearchDemo at work

To create BingImageSearchDemo, we'll need to establish a connection to the Bing Search Engine and we'll need to handle the asynchronous operation of searching and ...

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