29 references to Snapshot
Microsoft.Extensions.Diagnostics.ResourceMonitoring (3)
Linux\LinuxUtilizationProvider.cs (1)
163
return new
Snapshot
(
Windows\WindowsContainerSnapshotProvider.cs (1)
127
return new
Snapshot
(
Windows\WindowsSnapshotProvider.cs (1)
95
return new
Snapshot
(
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (26)
CalculatorTests.cs (8)
18
private readonly Snapshot _firstSnapshot =
new
(
36
Snapshot second =
new
(
71
Snapshot second =
new
(
94
Snapshot secondSnapshot =
new
(
121
Snapshot firstSnapshot =
new
(
126
Snapshot secondSnapshot =
new
(
149
Snapshot secondSnapshot =
new
(
180
Snapshot secondSnapshot =
new
(
Helpers\DummyProvider.cs (1)
27
return new
Snapshot
(
Providers\ConditionallyFaultProvider.cs (1)
34
return new
Snapshot
(
Providers\FakeProvider.cs (1)
11
private Snapshot _snapshot =
new
(
Providers\FaultProvider.cs (1)
25
return new
Snapshot
(TimeSpan.FromTicks(_clock.GetUtcNow().Ticks), TimeSpan.Zero, TimeSpan.Zero, ulong.MaxValue);
ResourceMonitoringServiceTests.cs (13)
388
var zerosSnapshot = new
Snapshot
(
402
new
Snapshot
(
407
new
Snapshot
(
412
new
Snapshot
(
417
new
Snapshot
(
422
new
Snapshot
(
495
var properInitSnapshot = new
Snapshot
(
508
new
Snapshot
(
513
new
Snapshot
(
518
new
Snapshot
(
523
new
Snapshot
(
528
new
Snapshot
(
643
.Returns(new
Snapshot
(
SnapshotTests.cs (1)
18
var snapshot = new
Snapshot
(TimeSpan.FromTicks(time.GetUtcNow().Ticks), TimeSpan.Zero, TimeSpan.FromSeconds(1), 10);