public void VisitHardware(IHardware hardware) { Logger.Trace("Updating hardware: {0}", hardware.Name); hardware.Update(); hardware.Traverse(this); }
public void VisitHardware(IHardware hardware) { if (hardware == null) { throw new ArgumentNullException("hardware"); } hardware.Traverse(this); }
public void VisitHardware(IHardware hardware) { Serilog.Log.Information(new string('\t', depth) + "{type} {name} {identifier}", hardware.HardwareType, hardware.Name, hardware.Identifier); hardware.Update(); depth++; hardware.Traverse(this); depth--; }
public void VisitHardware(IHardware hardware) { hardware.Update(); foreach (IHardware subHardware in hardware.SubHardware) { subHardware.Accept(this); } hardware.Traverse(this); }
public void VisitHardware(IHardware hardware) { string id = hardware.Identifier.ToString(); Logger.Log("Adding hardware: " + id); Result.Add(id, new HardwareInfo(id)); hardware.Update(); hardware.Traverse(this); }
public void VisitHardware(IHardware hardware) { var instance = new HardwareDescriptor(); instance.Type = hardware.HardwareType.ToString(); instance.Path = hardware.Identifier.ToString().Trim('/'); instance.Name = sensorConfig.GetName(instance.Path, hardware.Name); entry.Children.Add(instance); var temp = entry; entry = instance; hardware.Traverse(this); entry = temp; }
public void VisitHardware(IHardware hardware) { hardware.Traverse(this); }
public void VisitHardware(IHardware hardware) { if (hardware == null) throw new ArgumentNullException("hardware"); hardware.Traverse(this); }