Removed the locations property from the WeatherForecastAPI class - use an api methods instead. Fixed the self reference capturing.