Пример #1
0
        public void Execute(IJobExecutionContext context)
        {
            _aerisJobParams    = AerisJobParamsValueOf(context);
            _weatherRepository = _weatherRepositoryValueOf(_aerisJobParams);

            Log.Information("\nWeather job starting...\n");

            GatherWeatherData();

            PopulateWthExpUsageTable();

            Log.Information($"WeatherData was gathered and WthExpUsage calculated for Readings going back to {fromDateStart.ToShortDateString()}");
            Log.Information("\nWeather job finished.\n");
        }
Пример #2
0
 private IWeatherRepository _weatherRepositoryValueOf(AerisJobParams aerisJobParams)
 {
     return(new WeatherRepository(aerisJobParams));
 }