public GaugeAggregator(GaugeMetricSeriesConfiguration configuration, MetricSeries dataSeries, MetricAggregationCycleKind aggregationCycleKind)
            : base(MetricValuesBufferFactory, configuration, dataSeries, aggregationCycleKind)
        {
            Util.ValidateNotNull(configuration, nameof(configuration));

            _restrictToUInt32Values = configuration.RestrictToUInt32Values;
            ResetAggregate();
        }
        /// <summary />
        /// <param name="other"></param>
        /// <returns></returns>
        public bool Equals(GaugeMetricSeriesConfiguration other)
        {
            if (other == null)
            {
                return(false);
            }

            if (Object.ReferenceEquals(this, other))
            {
                return(true);
            }

            return((this.AlwaysResendLastValue == other.AlwaysResendLastValue) &&
                   (this.RestrictToUInt32Values == other.RestrictToUInt32Values));
        }