Rx.NET in Action is a full guide for the Reactive Extensions library for .NET developers. It delivers explanations, best practices, and tips and tricks that will allow you to fully use Rx in your applications.
Rx.NET in Action is for .NET developers who write event-based and asynchronous applications and need powerful consuming and querying capabilities over events and push-based sources.
Rx.NET in Action is also suitable for developers who are curious about reactive programming and the Rx library techniques, but who may not have an immediate need to use it. Adding Rx know-how to your toolbox is valuable for future projects; reactive programing is a hot topic and will continue to be in the future.
This book primarily uses the .NET version of Rx, and the code examples use the C# language. Readers familiar with C# will be right at home.
This book is suitable for any platform supported by .NET (including .NET Core).
The book’s 11 chapters are divided into two sections.
Part 1 provides an introduction to reactive programming and to the .NET skills you need in order to understand the functional aspects of the library.
Part 2 dives into each of the tasks you’ll do with Rx—from creating observables and observers, to controlling their lifetimes and reacting to queries you create on top of them.
The book also has three appendices:
The book is intended to be used as a guide and as a reference. If you’re new to Rx, I recommend reading from the beginning. If you’re already familiar with Rx concepts, you might find it useful to read a specific chapter based on the task you’re trying to accomplish.
This book contains many examples of source code both in numbered listings and inline with normal text. In both cases, source code is formatted in a fixed-width font like this to separate it from ordinary text. Sometimes code is also in bold to highlight code that has changed from previous steps in the chapter, such as when a new feature adds to an existing line of code.
In many cases, the original source code has been reformatted; we’ve added line breaks and reworked indentation to accommodate the available page space in the book. In rare cases, even this was not enough, and listings include line-continuation markers (). Additionally, comments in the source code have often been removed from the listings when the code is described in the text. Code annotations accompany many of the listings, highlighting important concepts.
The source code for this book is available to download from the publisher’s website (www.manning.com/books/rx-dot-net-in-action) and from GitHub (https://github.com/tamirdresher/RxInAction). Instructions for using this code are provided in the README file included in the repository root.
In the e-book, color is used in some listings and code snippets. Blue is used for primitive types and saved keywords. Aqua highlights user-defined types, and red is used for string literals. Brown is used for string parameters placeholders, and green is for comments. As always, black is user code.
Purchase of Rx.NET in Action includes free access to a private web forum run by Manning Publications, where you can make comments about the book, ask technical questions, and receive help from the author and from other users. To access the forum and subscribe to it, point your web browser at www.manning.com/books/rx-dot-net-in-action. This page provides information on how to get on the forum after you’re registered, the kinds of help available, and the rules of conduct on the forum.
Manning’s commitment to our readers is to provide a venue where a meaningful dialogue between individual readers and between readers and the author can take place. It’s not a commitment to any specific amount of participation on the part of the author, whose contribution to the Author Online forum remains voluntary (and unpaid). We suggest you try asking him some challenging questions, lest his interest stray! The Author Online forum and the archives of previous discussions will be accessible from the publisher’s website as long as the book is in print.
If you’re interested in Rx, you may also want to check out the Rx portal http://reactivex.io, which provides a Developer Center. It contains the most recent information about the library and its ports.
Rx.NET is an open source project, and you can find the full code and discussions at https://github.com/Reactive-Extensions/Rx.NET.
If you want to ask a question about Rx, you can visit the gitter channel (https://gitter.im/Reactive-Extensions/Rx.NET) or the slack #rx channel, which requires you to subscribe through the sign-up page for the .NET Core Slack Channel (http://tattoocoder.com/aspnet-slack-sign-up/).
18.118.20.231