Converting a collection to asynchronous Observable
This recipe walks through how to create an observable collection from an Enumerable
class and how to process it asynchronously.
Getting ready
To step through this recipe, you will need Visual Studio 2012. No other prerequisites are required. The source code for this recipe can be found at BookSamples\Chapter8\Recipe1
.
How to do it...
To understand how to create an observable collection from an Enumerable
class and process it asynchronously, perform the following steps:
Start Visual Studio 2012. Create a new C# Console Application project.
Add reference to the Reactive Extensions Main Library NuGet package.
Right-click on the References folder in the project and select the Manage NuGet Packages… menu option.
Now add your preferred reference to the Reactive Extensions - Main Library NuGet package. You can use search in the Manage NuGet Packages dialog, as shown in the following screenshot:
In the
Program.cs
file, add the followingusing
directives...