Exemple #1
0
 public List <Sensor> GetSensors()
 {
     if (sensors_list == null)
     {
         sensors_list = new SensorsList();
     }
     return(_sensors);
 }
Exemple #2
0
        public static SensorsList GetSensorsListInstance()
        {
            if (sensors_list == null)
            {
                lock (objLock)
                {
                    if (sensors_list == null)
                    {
                        sensors_list = new SensorsList();
                    }
                }
            }

            return(sensors_list);
        }