3 writes to CpuConsumptionRefreshInterval
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (3)
Linux\AcceptanceTest.cs (1)
80options.CpuConsumptionRefreshInterval = cpuRefresh;
Windows\WindowsContainerSnapshotProviderTests.cs (1)
219var options = new ResourceMonitoringOptions { CpuConsumptionRefreshInterval = TimeSpan.FromMilliseconds(2) };
Windows\WindowsSnapshotProviderTests.cs (1)
79var options = new ResourceMonitoringOptions { CpuConsumptionRefreshInterval = TimeSpan.FromMilliseconds(2) };
7 references to CpuConsumptionRefreshInterval
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
Windows\WindowsContainerSnapshotProvider.cs (1)
99_cpuRefreshInterval = options.CpuConsumptionRefreshInterval;
Windows\WindowsSnapshotProvider.cs (1)
75_cpuRefreshInterval = options.CpuConsumptionRefreshInterval;
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (5)
Linux\AcceptanceTest.cs (5)
50new($"{nameof(ResourceMonitoringOptions)}:{nameof(ResourceMonitoringOptions.CpuConsumptionRefreshInterval)}", cpuRefresh.ToString()), 66Assert.Equal(cpuRefresh, options.Value.CpuConsumptionRefreshInterval); 88Assert.Equal(cpuRefresh, options.Value.CpuConsumptionRefreshInterval); 102new($"{nameof(ResourceMonitoringOptions)}:{nameof(ResourceMonitoringOptions.CpuConsumptionRefreshInterval)}", cpuRefresh.ToString()), 151new($"{nameof(ResourceMonitoringOptions)}:{nameof(ResourceMonitoringOptions.CpuConsumptionRefreshInterval)}", cpuRefresh.ToString()),