New Posts New Posts RSS Feed: Reactive Extensions
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Reactive Extensions

 Post Reply Post Reply
Author
gregweb View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 10-Sep-2009
Location: Clearwater, Fl
Posts: 253
Post Options Post Options   Quote gregweb Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
cypher View Drop Down
Newbie
Newbie
Avatar

Joined: 26-Nov-2012
Location: Deutschland
Posts: 20
Post Options Post Options   Quote cypher Quote  Post ReplyReply Direct Link To This Post Posted: 11-Jul-2013 at 11:11am
Hi Greg,

thanks for Sharing this very useful lines of Code.

Reactive Extensions are awesome !
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down