public static void OpenComputer(this IComputerHardware computerHardware) { #if NETFUL computerHardware.Computer = new Computer { MainboardEnabled = computerHardware.isMainboardEnabled, CPUEnabled = computerHardware.isCPUsEnabled, FanControllerEnabled = computerHardware.isFanControllerEnabled, GPUEnabled = computerHardware.isVideoCardsEnabled }; // ToDo: Get teh HardwareMonitorLib to work, right now, it throws an exception it can't find system.management dll //computer.Open(); #else #endif }
public ComputerInventory(IComputerHardware computerHardware, IComputerSoftware computerSoftware, IComputerProcesses computerProcesses) { ComputerHardware = computerHardware ?? throw new ArgumentNullException(nameof(computerHardware)); ComputerSoftware = computerSoftware ?? throw new ArgumentNullException(nameof(computerSoftware)); ComputerProcesses = computerProcesses ?? throw new ArgumentNullException(nameof(computerProcesses)); }