public PortableAsyncCollectionWrapper(PortableISupportIncrementalLoad collection)
 {
     _collection = collection;
     if(collection.HasMoreItems && collection.Count == 0)
         _collection.LoadMoreItemsAsync(30).ConfigureAwait(true);
     //Task.Run(() => _collection.LoadMoreItemsAsync(30));
 }
Example #2
0
 public PortableAsyncCollectionWrapper(PortableISupportIncrementalLoad collection)
 {
     _collection = collection;
     if (collection.HasMoreItems)
     {
         _collection.LoadMoreItemsAsync(30).ConfigureAwait(true);
     }
     //Task.Run(() => _collection.LoadMoreItemsAsync(30));
 }
 private async Task <LoadMoreItemsResult> LoadMoreItemsAsyncImpl(uint count)
 {
     return(new LoadMoreItemsResult {
         Count = (uint)await _collection.LoadMoreItemsAsync(count)
     });
 }
Example #4
0
 public async Task Refresh()
 {
     await _collection.LoadMoreItemsAsync(30);
 }