Esempio n. 1
0
 public static bool IsPrimary(this SensorConfig config, string path, bool primary)
 {
     return(config.PrimarySensors.GetOrAdd(path, primary));
 }
Esempio n. 2
0
 public static void AddOrUpdatePrimary(this SensorConfig config, string path, bool primary)
 {
     config.PrimarySensors.AddOrUpdate(path, primary, (key, oldval) => { return(primary); });
 }
Esempio n. 3
0
 public static bool IsHidden(this SensorConfig config, string path, bool hidden)
 {
     return(config.SensorHidden.GetOrAdd(path, hidden));
 }
Esempio n. 4
0
 public static void AddOrUpdateHidden(this SensorConfig config, string path, bool hidden)
 {
     config.SensorHidden.AddOrUpdate(path, hidden, (key, oldval) => { return(hidden); });
 }
Esempio n. 5
0
 public static string GetName(this SensorConfig config, string path, string name)
 {
     return(config.SensorNames.GetOrAdd(path, name));
 }
Esempio n. 6
0
 public static void AddOrUpdateName(this SensorConfig config, string path, string name)
 {
     config.SensorNames.AddOrUpdate(path, name, (key, oldval) => { return(name); });
 }