private void FillValuesCache() { var productsList = _productManager.Products; foreach (var product in productsList) { var sensors = _productManager.GetProductSensors(product.Name); foreach (var sensor in sensors) { var lastVal = _databaseAdapter.GetLastSensorValue(product.Name, sensor.Path); if (lastVal != null) { _valuesCache.AddValue(product.Name, _converter.Convert(lastVal, sensor, product.Name)); } } } }