private async void RefreshStationsCache(object state) { _logger.LogInformation("Start Stations cache update process."); var stations = await _giosHttptService.GetAllStationsAsync(); _stationsCacheStore.UpdateRecords(stations); _logger.LogInformation("Stations cache updated."); }
private async void RefreshAirIndexCache(object state) { _logger.LogInformation("Start Air Index cache update process."); var stationsIds = _stationsCacheStore.GetAllRectordsDictionary(true).Keys; var airIndexesResults = await _giosHttptService.GetAirIndexValues(stationsIds); _airIndexCacheStore.UpdateRecords(airIndexesResults); _logger.LogInformation("Air indexes successfully updated."); }