public void GetRecentAllTest() { InitializeClient(); var completion = new ManualResetEvent(false); client.GetRecentAll().Subscribe(a => { var b = a.ToArray(); completion.Set(); }); completion.WaitOne(); }
public IObservable <IEnumerable <RecentItem> > GetRecentAll() { isRecentLoaded = false; return(client.GetRecentAll().Select(items => { if (items == null || items.Count() == 0) { return items; } isRecentLoaded = true; recentItems.Clear(); RefreshFeedItems(items); return SaveAndReturnItem(items); })); }