public void VisitHardware(IHardware hardware)
            {
                Logger.Trace("Updating hardware: {0}", hardware.Name);

                hardware.Update();
                hardware.Traverse(this);
            }
Example #2
0
 public void VisitHardware(IHardware hardware)
 {
     if (hardware == null)
     {
         throw new ArgumentNullException("hardware");
     }
     hardware.Traverse(this);
 }
Example #3
0
 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--;
 }
Example #4
0
        public void VisitHardware(IHardware hardware)
        {
            hardware.Update();
            foreach (IHardware subHardware in hardware.SubHardware)
            {
                subHardware.Accept(this);
            }

            hardware.Traverse(this);
        }
Example #5
0
            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;
            }
Example #7
0
 public void VisitHardware(IHardware hardware)
 {
     hardware.Traverse(this);
 }
Example #8
0
 public void VisitHardware(IHardware hardware)
 {
     hardware.Traverse(this);
 }
Example #9
0
 public void VisitHardware(IHardware hardware) {
   if (hardware == null)
     throw new ArgumentNullException("hardware");
   hardware.Traverse(this);
 }