コード例 #1
0
 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());
 }
コード例 #2
0
        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);
                }
            }
        }
コード例 #3
0
 protected async Task <List <T> > FetchPage(int pageIndex)
 {
     return(await _provider.FetchRange(pageIndex *_pageSize, _pageSize));
 }
コード例 #4
0
 public IList <Employees> FetchRange(int startIndex, int count)
 {
     return(_empProvider.FetchRange(startIndex, count));
 }