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