Esempio n. 1
0
        public async Task Reset(DataSource dataSource)
        {
            Entity.Items.Clear();
            EntitySearchText = string.Empty;

            Dimension.Items.Clear();
            DimensionSearchText = string.Empty;

            await _service.GetEntitiesAsync(dataSource)
                .Do(x =>
                      {
                          _allEntitiesForDataSource.Clear();
                          _allEntitiesForDataSource.AddRange(x);

                          Entity.Items.AddRange(x);
                      }, Scheduler.Dispatcher.TPL);
        }
Esempio n. 2
0
 public Task<List<Entity>> GetEntitiesAsync(DataSource dataSource)
 {
     var request = new GetMetaDataRequest { DataSource = dataSource };
     return _requestTask.Get(request)
                        .Select(x => x.Results.ToList(), _scheduler.Task.TPL);
 }