public MetricAggregator(StatsifyAggregatorConfigurationSection configuration, IDatapointDatabaseResolver datapointDatabaseResolver, ManualResetEvent stopEvent) { this.configuration = configuration; this.datapointDatabaseResolver = datapointDatabaseResolver; this.stopEvent = stopEvent; flushInterval = (float)configuration.Storage.FlushInterval.TotalMilliseconds; metricsBuffer = new MetricsBuffer(); var flushThread = new Thread(FlushCallback); flushThread.Start(); }
public DatapointDatabaseResolverCachingWrapper(IDatapointDatabaseResolver datapointDatabaseResolver) { this.datapointDatabaseResolver = datapointDatabaseResolver; }