示例#1
0
        public Metric(string name /*TelemetryClient telemetryClient*/)
        {
            Name        = name ?? "null";
            _aggregator = new MetricAggregator(DateTimeOffset.UtcNow);
            //this._telemetryClient = telemetryClient ?? throw new ArgumentNullException(nameof(telemetryClient));

            Task.Run(AggregatorLoopAsync);
        }
示例#2
0
 void IDisposable.Dispose()
 {
     _isDisposed = true;
     _aggregator = null;
 }