예제 #1
0
        void Dispose(bool disposing)
        {
            if (!this.disposed)
            {
                if (disposing)
                {
                    if (this.synopsis != null)
                    {
                        this.synopsis.Dispose();
                        this.synopsis = null;
                    }
                }

                this.disposed = true;
            }
        }
예제 #2
0
        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);
        }
예제 #3
0
 public void Stop()
 {
     // On stop, any state is discarded.  No output is issued for pending aggregations.
     this.synopsis.Dispose();
     this.synopsis = null;
 }