Ejemplo 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);
        }
Ejemplo 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);
 }