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