public async Task <IEnumerable <FilterDto> > GetFilters() { _logger.Log(LoggingLevel.Info, "GetFilters started"); try { return(await _filterManager.GetFilters()); } catch (Exception ex) { _logger.Log(LoggingLevel.Error, "There was an error : ", ex); } return(new List <FilterDto>()); }
private void AddChildren(FilterContainer filterContainer, DescendancyList descendancy) { HashSet <object> children = new HashSet <object>(); foreach (FilterContainer subcontainer in _dataExportFilterManager.GetSubContainers(filterContainer)) { AddChildren(subcontainer, descendancy.Add(subcontainer)); children.Add(subcontainer); } foreach (var filter in _dataExportFilterManager.GetFilters(filterContainer)) { children.Add(filter); } AddToDictionaries(children, descendancy); }
/// <inheritdoc/> public IFilter[] GetFilters() { return(_manager.GetFilters(this)); }