7 implementations of ISnapshotProvider
Microsoft.Extensions.Diagnostics.ResourceMonitoring (3)
Linux\LinuxUtilizationProvider.cs (1)
12internal sealed class LinuxUtilizationProvider : ISnapshotProvider
Windows\WindowsContainerSnapshotProvider.cs (1)
15internal sealed class WindowsContainerSnapshotProvider : ISnapshotProvider
Windows\WindowsSnapshotProvider.cs (1)
15internal sealed class WindowsSnapshotProvider : ISnapshotProvider
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (4)
Helpers\DummyProvider.cs (1)
9internal class DummyProvider : ISnapshotProvider
Providers\ConditionallyFaultProvider.cs (1)
9internal sealed class ConditionallyFaultProvider : ISnapshotProvider
Providers\FakeProvider.cs (1)
9internal sealed class FakeProvider : ISnapshotProvider
Providers\FaultProvider.cs (1)
9internal sealed class FaultProvider : ISnapshotProvider
33 references to ISnapshotProvider
Microsoft.Extensions.Diagnostics.ResourceMonitoring (6)
ResourceMonitoringServiceCollectionExtensions.cs (3)
104builder.Services.TryAddSingleton<ISnapshotProvider, WindowsContainerSnapshotProvider>(); 108builder.Services.TryAddSingleton<ISnapshotProvider, WindowsSnapshotProvider>(); 117builder.Services.TryAddActivatedSingleton<ISnapshotProvider, LinuxUtilizationProvider>();
ResourceMonitorService.cs (3)
30private readonly ISnapshotProvider _provider; 55ISnapshotProvider provider, 64ISnapshotProvider provider,
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (27)
Linux\AcceptanceTest.cs (6)
34var provider = services.GetRequiredService<ISnapshotProvider>(); 130var provider = services.GetService<ISnapshotProvider>(); 178var provider = services.GetService<ISnapshotProvider>();
ResourceMonitoringExtensionsTests.cs (8)
41builder.Services.AddSingleton<ISnapshotProvider, FakeProvider>(); 77builder.Services.AddSingleton<ISnapshotProvider, FakeProvider>(); 99builder.Services.AddSingleton<ISnapshotProvider, FakeProvider>(); 107var provider = host.Services.GetService<ISnapshotProvider>(); 127builder.Services.AddSingleton<ISnapshotProvider, FakeProvider>(); 171builder.Services.AddSingleton<ISnapshotProvider, FakeProvider>(); 193builder.Services.AddSingleton<ISnapshotProvider, FakeProvider>();
ResourceMonitoringServiceTests.cs (13)
41var mockProvider = new Mock<ISnapshotProvider>(MockBehavior.Loose); 55var provider = GetDataTrackerField<ISnapshotProvider>(tracker, "_provider"); 69var mockProvider = new Mock<ISnapshotProvider>(MockBehavior.Loose); 84var mockProvider = new Mock<ISnapshotProvider>(MockBehavior.Loose); 98var mockProvider = new Mock<ISnapshotProvider>(MockBehavior.Loose); 130var mockProvider = new Mock<ISnapshotProvider>(MockBehavior.Loose); 146var provider = GetDataTrackerField<ISnapshotProvider>(tracker, "_provider"); 166var mockProvider = new Mock<ISnapshotProvider>(MockBehavior.Loose); 638var providerMock = new Mock<ISnapshotProvider>(MockBehavior.Loose); 672var providerMock = new Mock<ISnapshotProvider>(MockBehavior.Loose); 696var providerMock = new Mock<ISnapshotProvider>(MockBehavior.Loose);