Reputation: 2623
I tried to register to the MessageBus an observable that replay the last value produced when a new subscription occurs
var currentViewObs = currentViewGallery.ObservableForProperty(g => g.SelectedIndex)
.Value().Select(CurrentViewObsSelector).Replay(1);
currentViewObs.Connect();
MessageBus.Current.RegisterMessageSource(currentViewObs, MessageBusContracts.CurrentView);
This doesn't work because the observable is wrapped in a ScheduledSubject which swallows the replay. Is there another way of doing that?
Upvotes: 0
Views: 244