// add the given detector to the list if it's not null, and return it public IAnomalyDetector AddAnomalyDetector(IAnomalyDetector ad) { if (ad != null) { this.detectors.Add(ad); } return(ad); }
public DataAggregatorCore(IAggregatorService <CollectedDataDto> aggregatorService, IInstanceAnomalyReportsRepository reportsRepository, ILogger <DataAggregatorCore> logger, IAnomalyDetector anomalyDetector, IServiceBusProvider provider) { _aggregatorService = aggregatorService; _reportsRepository = reportsRepository; _logger = logger; _anomalyDetector = anomalyDetector; _serviceBusProvider = provider; }