8 references to WindowsContainerSnapshotProvider
Microsoft.Extensions.Diagnostics.ResourceMonitoring (8)
ResourceMonitoringServiceCollectionExtensions.cs (1)
116builder.Services.TryAddSingleton<ISnapshotProvider, WindowsContainerSnapshotProvider>();
Windows\WindowsContainerSnapshotProvider.cs (7)
35private readonly ILogger<WindowsContainerSnapshotProvider> _logger; 54/// Initializes a new instance of the <see cref="WindowsContainerSnapshotProvider"/> class. 57ILogger<WindowsContainerSnapshotProvider>? logger, 66/// Initializes a new instance of the <see cref="WindowsContainerSnapshotProvider"/> class. 68/// <remarks>This constructor enables the mocking of <see cref="WindowsContainerSnapshotProvider"/> dependencies for the purpose of Unit Testing only.</remarks> 74ILogger<WindowsContainerSnapshotProvider>? logger, 80_logger = logger ?? NullLogger<WindowsContainerSnapshotProvider>.Instance;