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(); }
public HumiditySensor(IHumidityStorage storage) { _humidityStorage = storage; }