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