22 writes to SamplingInterval
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (22)
ResourceMonitoringOptionsTests.cs (1)
17SamplingInterval = TimeSpan.FromMilliseconds(10),
ResourceMonitoringOptionsValidatorTests.cs (5)
18SamplingInterval = TimeSpan.FromMilliseconds(10), 35SamplingInterval = TimeSpan.FromSeconds(1), 50SamplingInterval = TimeSpan.FromMilliseconds(0), 65SamplingInterval = TimeSpan.FromMilliseconds(1), 110SamplingInterval = TimeSpan.FromMilliseconds(samplingPeriod),
ResourceMonitoringServiceTests.cs (8)
114SamplingInterval = TimeSpan.FromMilliseconds(int.MaxValue) 204SamplingInterval = TimeSpan.FromMilliseconds(TimerPeriod), 246SamplingInterval = TimeSpan.FromMilliseconds(1) 320SamplingInterval = TimeSpan.FromMilliseconds(TimerPeriod) 363SamplingInterval = TimeSpan.FromMilliseconds(TimerPeriod) 440SamplingInterval = TimeSpan.FromMilliseconds(TimerPeriod) 549SamplingInterval = TimeSpan.FromMilliseconds(TimerPeriod) 655SamplingInterval = TimeSpan.FromMilliseconds(100),
Windows\Tcp6TableInfoTests.cs (3)
235SamplingInterval = DefaultTimeSpan 251SamplingInterval = DefaultTimeSpan 269SamplingInterval = DefaultTimeSpan
Windows\TcpTableInfoTests.cs (3)
178SamplingInterval = DefaultTimeSpan 194SamplingInterval = DefaultTimeSpan 212SamplingInterval = DefaultTimeSpan
Windows\WindowsCountersTests.cs (2)
27SamplingInterval = TimeSpan.FromSeconds(5) 69SamplingInterval = 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)}"] 179Assert.Equal(TimeSpan.FromSeconds(SamplingPeriodValue), options!.Value.SamplingInterval);