Rx – for beginners (part 5): marble diagrams, select and where

2010/02/28

Rx - for beginners (part 5): marble diagrams, select and where this post is the 5th in a series of posts about the new Reactive Framework (Rx). the series TOC can found here.   this post will focus on marble diagrams which is used for visualizing IObservable stream. on this post we will visualize the select and where clause, while in the upcoming posts we will discuss other operations that can be used to upon IObservable streams.   the code sample for this post is available here.  ...

Rx – for beginners (part 4): anonymous observer handler

2010/02/26

Rx - for beginners (part 4): anonymous observer handler this post is the 4th in a series of posts about the new Reactive Framework (Rx). the series TOC can found here.   this post will focus on anonymous observer handler. the code sample for this post can be download from here.   Anonymous Observer as we mention on the previous posts, IObserver is used as a callback interface which can be subscribe to the IObservable, but this is a bit of overkill, when what we...

MEF Preview 9 released

MEF Preview 9 was released   MEF preview 9 changes will be reflected the in the release of .NET 4.0 and Silverlight 4.0.   except from bug fixing, there was some changes to the API, most of the changes is related to  System.ComponentModel.Composition.Initilization.dll, which is not yet available only for none Silverlight application :-(   here is a short list of API changes: PackageCatalog were brought back, and changed it name to DeploymentCatalog. ...

Rx – for beginners (part 3): IObservable Vs. IEnumerable

2010/02/25

Rx - for beginners (part 3): IObservable Vs. IEnumerable this post is the 3rd in a series of posts about the new Reactive Framework (Rx). the series TOC can found here. this post will focus on how exactly the IObservable/IObserver mirror IEnumerable/IEnumerator.    IEnumerator operations IEnumerable expose the following operations: Code Snippet public interface IEnumerator<T> : IDisposable, IEnumerator {     T Current { get; } }   public interface {     object Current { get; }     bool MoveNext();     void Reset(); } ...
no comments

Rx – Reactive Extension โ€“ for beginners (part 2)

2010/02/22

Rx - Reactive Extension (part 2) this post is the second in a series of posts about the new Reactive Framework (Rx). the previous post discuss the concept of Rx (Reactive Framework Extension), this post will focus on some basic practice.   In this post we will create small WPF application that got images from different image feeds providers (the source code can be found here).   Application layout The application layout is described in the following diagram.   the image data will be pushed...
no comments

Rx – Reactive Extension โ€“ for beginner (part 1)

2010/02/19

Rx - Reactive Extension (part 1) this post is the first in a series of posts about the new Reactive Framework (Rx).   What is the Reactive Framework Extension? the Rx formalize the push based programming pattern. it is dealing with event like collection, in manner that can be describe as the mirroring of IEnumerable<T>.   How does it mirror the IEnumerable<T>? the Rx framework most fundamental interface are, IObservable<T> which is mirroring IEnumerable<T>. Code Snippet // Summary: //     Represents a push-style collection....

MEF for Beginner (Catalogs) – part 10

2010/02/13

MEF for Beginner (Catalogs) - part 10 this is the 10th post of the MEF for Beginner series, the series TOC is available here. this post will focus on Catalogs.   What is MEF Catalogs? MEF container is using catalogs as its search area definition. the catalog have instructions about where can MEF look for the compose-able parts (import and export definitions). in short catalogs are actually a discovery instruction.   Out of the box catalogs MEF is shipping with the following out of the box...