public PortableAsyncCollectionWrapper(PortableISupportIncrementalLoad collection)
 {
     _collection = collection;
     if(collection.HasMoreItems && collection.Count == 0)
         _collection.LoadMoreItemsAsync(30).ConfigureAwait(true);
     //Task.Run(() => _collection.LoadMoreItemsAsync(30));
 }
Esempio n. 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)
     });
 }
Esempio n. 4
0
 public async Task Refresh()
 {
     await _collection.LoadMoreItemsAsync(30);
 }