// Get Multiple indice private List <string> MultipleIndiceParameter(IEnumerable <int> weeks, string[] types) { List <String> indexes = new List <string>(); foreach (string type in types) { foreach (int week in weeks) { indexes.Add(_esClient.GetIndex(type, TABLE_NAME, week)); } } return(indexes); }
private List <string> GetIndexes <T>(IEnumerable <string> types) { List <string> indexesPool = new List <string>(); foreach (string t in types) { indexesPool.Add(_ESFactory.GetIndex <T>(t)); } return(indexesPool); }
/// <summary> /// Compute a different index by accountID + appName + week + type. /// </summary> /// <param name="type">Type of index to create</param> /// <returns>Return the computed index name</returns> private string GetIndexName(string type) { return(_cFactory.GetIndex(type, TABLE_NAME, GetWeek(DateTime.UtcNow).ToString())); }
private string GetIndex <T>() { return(_clientFactory.GetIndex <T>(_indexName)); }