Initial WIP commit
Some checks failed
Deploy to Gitea Releases / deploy-to-gitea-releases (push) Failing after 9s
Some checks failed
Deploy to Gitea Releases / deploy-to-gitea-releases (push) Failing after 9s
This commit is contained in:
25
Service/HardwareUpdateVisitor.cs
Normal file
25
Service/HardwareUpdateVisitor.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using LibreHardwareMonitor.Hardware;
|
||||
|
||||
namespace HardwareMonitorStatusWindow.Service;
|
||||
|
||||
internal class HardwareUpdateVisitor : IVisitor
|
||||
{
|
||||
public void VisitComputer(IComputer computer)
|
||||
{
|
||||
computer.Traverse(this);
|
||||
}
|
||||
|
||||
public void VisitHardware(IHardware hardware)
|
||||
{
|
||||
hardware.Update();
|
||||
foreach (var subHardware in hardware.SubHardware) subHardware.Accept(this);
|
||||
}
|
||||
|
||||
public void VisitSensor(ISensor sensor)
|
||||
{
|
||||
}
|
||||
|
||||
public void VisitParameter(IParameter parameter)
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user