public IList <AudioModel> FetchRange(int startIndex, int count) { return(__InternalProvider.FetchRange(startIndex, count).Select(audio => { var cur = __GetCurrentActive(); return cur != null && audio.AudioId == cur.AudioId ? cur : new AudioModel(audio); }).ToList()); }
public IEnumerator <T> GetEnumerator() { const int fetchCount = 10; for (int i = 0; i < Count; i += fetchCount) { var fetched = __Ip.FetchRange(i, Math.Min(fetchCount, Count - i)); foreach (var x in fetched) { yield return(x); } } }
protected async Task <List <T> > FetchPage(int pageIndex) { return(await _provider.FetchRange(pageIndex *_pageSize, _pageSize)); }
public IList <Employees> FetchRange(int startIndex, int count) { return(_empProvider.FetchRange(startIndex, count)); }