Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Examples of IQbservable [closed]

I am trying to come up with some good examples of IQbservable usage and thought I'd ask if anyone has used it yet, or has any ideas for how it might be used or abused?

EDIT This (IQbservable) is not a typo! (See comments)

like image 830
Richard Anthony Freeman-Hein Avatar asked Aug 24 '10 02:08

Richard Anthony Freeman-Hein


2 Answers

Just like IQueryable lets you not double-evaluate an expression when you chain operations (since you can fetch out the underlying Expression), IQbservable has the same advantages. You can get the complete observable expression, so that you can make custom Rx implementations (just like you can make Linq-to-SQL, Linq-to-XML, Linq-to-Twitter, etc).

Some ideas for IQbservable implementations? How about:

  • Node.js style single-threaded IQbservable, no locks, only a runloop
  • Rx-to-ServiceBus, implementing blocking operations and Schedulers as separate machines and waiting on the results instead of using simple locks and Task items
like image 103
Ana Betts Avatar answered Oct 03 '22 15:10

Ana Betts


Bart De Smet (member of the Cloud Computability team, responsible for Rx) has posted the source code for an IQbservable provider. The details and link to the code are available at http://social.msdn.microsoft.com/Forums/en-US/rx/thread/d459291a-4245-45ba-8888-35e07f7cf5b2.

like image 32
Richard Anthony Freeman-Hein Avatar answered Oct 03 '22 16:10

Richard Anthony Freeman-Hein