0

Following my earlier question about Reactive Extensions Instant Search for WPF/MVVM, wherein...

I would like to implement a TextBox where, as you type, results appear instantly in another ListBox

...I found that this problem had originally been addressed by ReactiveUI and there was a relatively straightforward solution posted in the ReactiveUI blog and documentation.

Fast forward to ReactiveUI 5, and the API has been changed, and the old examples don't work any more. ReactiveAsyncCommand has been merged with ReactiveCommand; however ReactiveCommand doesn't seem to have a RegisterAsyncFunction() method necessary to get things working.

Unfortunately the ReactiveUI documentation is very much out of date. How can I get this sample working with the new API?

Community
  • 1
  • 1
Gigi
  • 28,163
  • 29
  • 106
  • 188
  • There is some documentation here https://github.com/reactiveui/ReactiveUI/tree/docs/docs/basics Some of it is related to the ReactiveCommand. It goes into detail of the API. – Glenn Watson Apr 19 '14 at 23:53

1 Answers1

1

Are you sure you're using ReactiveUI 5.x? RegisterAsyncFunction definitely still exists, here's where it is:

https://github.com/reactiveui/ReactiveUI/blob/master/ReactiveUI/ReactiveCommand.cs#L273

Ana Betts
  • 73,868
  • 16
  • 141
  • 209
  • ReactiveUI 5.5.1, installed via NuGet. My bad, actually - I was assigning my ReactiveCommand to a member variable of type ICommand, so obviously extension methods of ReactiveCommand did not apply. – Gigi Apr 20 '14 at 07:57
  • link is dead :( – Chase Florell Oct 17 '19 at 13:51
  • I sure hope it's dead, ReactiveUI 5.x is super dead :P The modern equivalent is `ReactiveCommand.CreateFromTask` – Ana Betts Oct 17 '19 at 22:25