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"); }
private IWeatherRepository _weatherRepositoryValueOf(AerisJobParams aerisJobParams) { return(new WeatherRepository(aerisJobParams)); }