22 writes to SamplingInterval
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (22)
ResourceMonitoringOptionsTests.cs (1)
17
SamplingInterval
= TimeSpan.FromMilliseconds(10),
ResourceMonitoringOptionsValidatorTests.cs (5)
18
SamplingInterval
= TimeSpan.FromMilliseconds(10),
35
SamplingInterval
= TimeSpan.FromSeconds(1),
50
SamplingInterval
= TimeSpan.FromMilliseconds(0),
65
SamplingInterval
= TimeSpan.FromMilliseconds(1),
110
SamplingInterval
= TimeSpan.FromMilliseconds(samplingPeriod),
ResourceMonitoringServiceTests.cs (8)
114
SamplingInterval
= TimeSpan.FromMilliseconds(int.MaxValue)
204
SamplingInterval
= TimeSpan.FromMilliseconds(TimerPeriod),
246
SamplingInterval
= TimeSpan.FromMilliseconds(1)
320
SamplingInterval
= TimeSpan.FromMilliseconds(TimerPeriod)
363
SamplingInterval
= TimeSpan.FromMilliseconds(TimerPeriod)
440
SamplingInterval
= TimeSpan.FromMilliseconds(TimerPeriod)
549
SamplingInterval
= TimeSpan.FromMilliseconds(TimerPeriod)
655
SamplingInterval
= TimeSpan.FromMilliseconds(100),
Windows\Tcp6TableInfoTests.cs (3)
235
SamplingInterval
= DefaultTimeSpan
251
SamplingInterval
= DefaultTimeSpan
269
SamplingInterval
= DefaultTimeSpan
Windows\TcpTableInfoTests.cs (3)
178
SamplingInterval
= DefaultTimeSpan
194
SamplingInterval
= DefaultTimeSpan
212
SamplingInterval
= DefaultTimeSpan
Windows\WindowsCountersTests.cs (2)
27
SamplingInterval
= TimeSpan.FromSeconds(5)
69
SamplingInterval
= TimeSpan.FromSeconds(5)
4 references to SamplingInterval
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
ResourceMonitorService.cs (1)
75
_samplingInterval = optionsValue.
SamplingInterval
;
Windows\Network\WindowsTcpStateInfo.cs (1)
41
_samplingInterval = options.Value.
SamplingInterval
;
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (2)
ResourceMonitoringExtensionsTests.cs (2)
154
[$"{nameof(ResourceMonitoringOptions)}:{nameof(ResourceMonitoringOptions.
SamplingInterval
)}"]
179
Assert.Equal(TimeSpan.FromSeconds(SamplingPeriodValue), options!.Value.
SamplingInterval
);