Exemple #1
0
        public void RegisterAggregator(AggregatorSettings aggregatorSettings)
        {
            Aggregator aggregator = new Aggregator(aggregatorSettings);

            _aggregators.TryAdd(aggregatorSettings, aggregator);
            //aggregator.AggregationComplete.Subscribe(_onAggregationCompleteAction);
            //aggregator.Start();
        }
Exemple #2
0
        public void UnRegisterAggregator(AggregatorSettings aggregatorSettings)
        {
            Aggregator aggregator;

            if (_aggregators.TryRemove(aggregatorSettings, out aggregator))
            {
                aggregator.Dispose();
            }
        }
Exemple #3
0
 public Aggregator(AggregatorSettings aggregatorSettings)
     : this(aggregatorSettings.CounterCategoryFilter, aggregatorSettings.CounterNameFilter, new List <string>() { aggregatorSettings.AggregationType }, new Dictionary <string, string>() { { aggregatorSettings.AggregationType, aggregatorSettings.AggregationParameters } }, _ => {})
 {
 }