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