0

I want to show a straightforward dialog window on pressing a button.

In case subscribing is the only option, my follow-up question is whether I need to do

.ObserveOn(RxApp.MainThreadScheduler)

on commands as well?

user3071284
  • 6,955
  • 6
  • 43
  • 57
Den
  • 1,827
  • 3
  • 25
  • 46

1 Answers1

2

Subscribing on the ReactiveCommand does sound like the most obvious choice.

RxApp.MainThreadScheduler is already the default scheduler for ReactiveCommands, as per the ctor, if you didn't provide another scheduler there.

It'll be the ObserveOn context for your subscriptions.

Gluck
  • 2,933
  • 16
  • 28