13 references to MetricCollector
Microsoft.Extensions.Diagnostics.Testing.Tests (13)
Metrics\MeasurementExtensionsTests.cs (11)
19
using var collector = new
MetricCollector
<long>(counter);
44
using var collector = new
MetricCollector
<long>(counter);
69
using var collector = new
MetricCollector
<long>(counter);
97
using var collector = new
MetricCollector
<long>(counter);
128
using var collector = new
MetricCollector
<byte>(counter);
145
using var collector = new
MetricCollector
<short>(counter);
162
using var collector = new
MetricCollector
<int>(counter);
179
using var collector = new
MetricCollector
<long>(counter);
196
using var collector = new
MetricCollector
<float>(counter);
213
using var collector = new
MetricCollector
<double>(counter);
230
using var collector = new
MetricCollector
<decimal>(counter);
Metrics\MetricCollectorTests.cs (2)
19
Assert.Throws<ArgumentNullException>(() => new
MetricCollector
<long>((Instrument<long>)null!));
96
using var collector = new
MetricCollector
<long>(counter, timeProvider);