Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Reactive Programming for .NET Developers

You're reading from  Reactive Programming for .NET Developers

Product type Book
Published in Jul 2016
Publisher Packt
ISBN-13 9781785882883
Pages 276 pages
Edition 1st Edition
Languages

Table of Contents (15) Chapters

Reactive Programming for .NET Developers
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface
1. First Steps Toward Reactive Programming 2. Reactive Programming with C# 3. Reactive Extension Programming 4. Observable Sequence Programming 5. Debugging Reactive Extensions 6. CLR Integration and Scheduling 7. Advanced Techniques 8. F# and Functional Reactive Programming 9. Advanced FRP and Best Practices

Advanced operators


Sometimes, we need functions to create message repetitions or to manipulate or reuse a subscription with multiple observers. This is the time when advanced operators come into play.

IgnoreElements

The IgnoreElements factory method creates a new sequence that will ignore any value message. Instead, errors and completion messages will normally flow out from the sourcing sequence.

This method is particularly useful to create multiple acknowledgements or simply to append some completion code to a sourcing sequence. Here's an example:

//the sourcing sequence of errors or completed messages 
var sourcingSequence = Observable.Throw<object>(new Exception("Test")); 
 
//a sequence able to handle only errors or completed messages 
var ignoredElements = sourcingSequence.IgnoreElements(); 
ignoredElements.Subscribe(new ConsoleObserver()); 

The ConsoleObserver class is the same as that of the previous examples. See the Interval or Create sections in...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}