public static List <ElasticIndex> ToList(List <CatIndicesRecordExtended> indexRecords) { var lst = new List <ElasticIndex>(); foreach (var item in indexRecords.Where(r => !r.Index.StartsWith("."))) { ElasticIndex ea = AutoMapper.Mapper.Map <ElasticIndex>(item); lst.Add(ea); } return(lst); }
public static List <ElasticIndex> ToList(ICatResponse <CatIndicesRecord> indexRecords) { var lst = new List <ElasticIndex>(); foreach (var item in indexRecords.Records) { ElasticIndex ea = AutoMapper.Mapper.Map <ElasticIndex>(item); lst.Add(ea); } return(lst); }
private void PopulateConnectionEntities() { using (var access = GetElasticAccess()) { ClearTree(); List <ElasticIndex> indexList = ElasticIndex.ToList(access.IndexList()); RenderIndexes(indexList); List <ElasticAlias> aliasList = ElasticAlias.ToList(access.AliasList()); RenderAliases(aliasList); // apply aliases to indexes ApplyAliasesToIndexes(indexList, aliasList); } }
private void PopulateConnectionEntities() { using (var access = GetElasticAccess()) { ClearTree(); List <ElasticIndex> indexList = ElasticIndex.ToList(access.IndexListExtended()); //List<ElasticIndex> indexList = ElasticIndex.ToList(access.IndexList()); RenderIndexes(indexList); List <ElasticAlias> aliasList = ElasticAlias.ToList(access.AliasList()); RenderAliases(aliasList); // apply aliases to indexes ApplyAliasesToIndexes(indexList, aliasList); // add a Tasks node var parentNode = treeEntities.Nodes.Add("Tasks"); } }