1 implementation of IFileSystem
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Linux\OSFileSystem.cs (1)
21
internal sealed class OSFileSystem :
IFileSystem
11 references to IFileSystem
Microsoft.Extensions.Diagnostics.ResourceMonitoring (11)
Linux\LinuxUtilizationParserCgroupV1.cs (4)
88
private readonly
IFileSystem
_fileSystem;
91
public LinuxUtilizationParserCgroupV1(
IFileSystem
fileSystem, IUserHz userHz)
402
private static bool TryGetCpuUnitsFromCgroups(
IFileSystem
fileSystem, out float cpuUnits)
452
private static bool TryGetCgroupRequestCpu(
IFileSystem
fileSystem, out float cpuUnits)
Linux\LinuxUtilizationParserCgroupV2.cs (4)
89
private readonly
IFileSystem
_fileSystem;
92
public LinuxUtilizationParserCgroupV2(
IFileSystem
fileSystem, IUserHz userHz)
487
private static bool TryGetCpuUnitsFromCgroups(
IFileSystem
fileSystem, out float cpuUnits)
534
private static bool TryGetCgroupRequestCpu(
IFileSystem
fileSystem, out float cpuUnits)
Linux\Network\LinuxNetworkUtilizationParser.cs (2)
30
private readonly
IFileSystem
_fileSystem;
42
public LinuxNetworkUtilizationParser(
IFileSystem
fileSystem)
ResourceMonitoringServiceCollectionExtensions.cs (1)
119
builder.Services.TryAddSingleton<
IFileSystem
, OSFileSystem>();