public IObservable <IEnumerable <IThreadSafeTimeEntry> > Execute() => Observable.Merge( timeEntries.ItemsChanged(), workspaces.ItemsChanged()) .StartWith(Unit.Default) .SelectMany(_ => getTimeEntries()) .DistinctUntilChanged();
public IObservable <IEnumerable <IThreadSafeTimeEntry> > Execute() { return(dataSource.ItemsChanged() .StartWith(Unit.Default) .SelectMany(_ => new GetAllTimeEntriesVisibleToTheUserInteractor(dataSource).Execute())); }