Print Page | Close Window

Reactive Extensions

Printed From: IdeaBlade
Category: Cocktail
Forum Name: Community Forum
Forum Discription: A professional application framework using Caliburn.Micro and DevForce
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=4203
Printed Date: 20-Sep-2025 at 2:23am


Topic: Reactive Extensions
Posted By: gregweb
Subject: Reactive Extensions
Date Posted: 30-Jun-2013 at 9:48am
I have been playing around with Rx lately and tested it out on TempHire.

The following two lines adds incremental search to TempHire:

var observable = Observable.FromEventPattern<PropertyChangedEventArgs>(this, "PropertyChanged");

observable.Where(e=> e.EventArgs.PropertyName == "SearchText").Throttle(TimeSpan.FromSeconds(.5)).Subscribe(e => Search());

I think that's pretty amazing for two lines of code.

Greg



Replies:
Posted By: cypher
Date Posted: 11-Jul-2013 at 11:11am
Hi Greg,

thanks for Sharing this very useful lines of Code.

Reactive Extensions are awesome !



Print Page | Close Window