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

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.