Contact Us
Forum Home
>
Cocktail
>
Community Forum
New Posts
FAQ
Search
Calendar
Register
Login
Reactive Extensions
Post Reply
Author
Message
Share Topic
Printable Version
Delicious
Digg
Facebook
Furl
Google Boomarks
Google Buzz
MySpace
Newsvine
reddit
StumbleUpon
Translate
Twitter
Windows Live
Yahoo Bookmarks
Topic Search
Topic Options
Post Reply
Create New Topic
gregweb
Members Profile
Send Private Message
Find Members Posts
Visit Members Homepage
Add to Buddy List
DevForce MVP
Joined: 10-Sep-2009
Location: Clearwater, Fl
Posts: 253
Post Options
Post Reply
Quote gregweb
Report Post
Quote
Reply
Topic: Reactive Extensions
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
cypher
Members Profile
Send Private Message
Find Members Posts
Visit Members Homepage
Add to Buddy List
Newbie
Joined: 26-Nov-2012
Location: Deutschland
Posts: 20
Post Options
Post Reply
Quote cypher
Report Post
Quote
Reply
Posted: 11-Jul-2013 at 11:11am
Hi Greg,
thanks for Sharing this very useful lines of Code.
Reactive Extensions are awesome !
Post Reply
Forum Jump
-- Select Forum --
Community Forum
Community Forum
Community Forum now on StackOverflow
DevForce 2012
DevForce 2010
DevForce 2009
DevForce Classic
Forum Permissions
You
cannot
post new topics in this forum
You
cannot
reply to topics in this forum
You
cannot
delete your posts in this forum
You
cannot
edit your posts in this forum
You
cannot
create polls in this forum
You
cannot
vote in polls in this forum