News

Preview of Reactive Extensions for .NET Available

Microsoft announced the availability of a Reactive Extensions for .NET (Rx) preview on Wednesday, in conjunction with its Professional Developers Conference 2009, held this week in Los Angeles.

Rx is a .NET Framework extension library that developers can use to build “reactive applications”—applications that can react to changes to the collections in their environment. In the past, this event-based behavior has typically been handled via locks and event handlers. With Rx, developers can write declarative code that leverage changes in the properties of observable collections to fire off push-based, asynchronous behavior in their applications.

Using the Task Parallel library for concurrency, Rx builds on LINQ standard sequence operators in the .NET Framework 4 and Silverlight 4 to enable push-based notifications. Other .NET entities can leverage these notifications, greatly simplifying the creation of asynchronous applications.

Any .NET-compliant language can use Rx, from the familiar Visual Basic and C# to newer languages like F#.

An example of Rx in use is the Silverlight Toolkit. Microsoft used Rx to build the Silverlight Toolkit Drag and Drop Framework, which uses the Windows Presentation Foundation (WPF) to create and react to drag-and-drop operations within a Silverlight application. Rx was also used by Microsoft in the Silverlight unit testing framework to write reliable, readable asynchronous test code. Rx drastically reduced development and testing time for the Silverlight team.

In addition to the observable collection library extensions, there are a number of experimental items included in this release of Rx. These include types and namespaces to extend Rx functionality to enumerable collections, as well as a .NET Framework 3.5 version of PLINQ.

The MSDN DevLabs site provides Rx preview downloads for .NET Framework 3.5 SP1, .NET Framework 4 Beta 2, and Silverlight 3. Both Visual Studio 2008 SP1 and Visual Studio 2010 Beta 2 are supported development environments.

About the Author

Terrence Dorsey is a technical writer, editor and content strategist specializing in technology and software development. Over the last 25-plus years he has worked on developer-focused projects at ESPN, The Code Project, and Microsoft. Read his blog at http://terrencedorsey.com or follow @tpdorsey on Twitter.

comments powered by Disqus

Featured

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube