Example #1
0
 public WeatherForecastController(ILogger <WeatherForecastController> logger, ITemperatureStorage temperatureStorage, IPressureStorage pressureStorage, IWindStorage windStorage, IHumidityStorage humidityStorage, IDataManager manager)
 {
     _logger             = logger;
     _temperatureStorage = temperatureStorage;
     _humidityStorage    = humidityStorage;
     _pressureStorage    = pressureStorage;
     _windStorage        = windStorage;
     _dataManager        = manager;
     _dataManager.StartDataRetreivingAsync();
 }
Example #2
0
 public HumiditySensor(IHumidityStorage storage)
 {
     _humidityStorage = storage;
 }