public void Start() { AggregationSettings settings = new AggregationSettings() { EnableExpirationClock = AggregationDefaults.FarmEnableExpirationClock, ExpireAggregationClockFrequency = this.ExpireAggregationClockFrequency, ExtraExpirationWaitTime = this.ExtraExpirationWaitTime, ClockExpirationWaitTime = this.ClockExpirationWaitTime }; this.synopsis = new RollupAggregationSynopsis( this.processEvent != null ? this.processEvent : this.ConsumeMetricEvent, settings); }
void Dispose(bool disposing) { if (!this.disposed) { if (disposing) { if (this.synopsis != null) { this.synopsis.Dispose(); this.synopsis = null; } } this.disposed = true; } }
public void Stop() { // On stop, any state is discarded. No output is issued for pending aggregations. this.synopsis.Dispose(); this.synopsis = null; }