async void HandleLocationChanged(object sender, LocationEventArgs e){ var weather = await _restService.GetWeather (e.Longtitude, e.Latitude); if (_cachedWeather == null || (_cachedWeather.Temperature != weather.Temperature || _cachedWeather.WeatherCondition != weather.WeatherCondition)) { _cachedWeather = weather; _messenger.Publish (new WeatherChangedMessage (this, weather.Temperature, weather.WeatherCondition)); } }
async void HandleLocationChanged(object sender, LocationEventArgs e) { var weather = await _restService.GetWeather(e.Longtitude, e.Latitude); if (_cachedWeather == null || (_cachedWeather.Temperature != weather.Temperature || _cachedWeather.WeatherCondition != weather.WeatherCondition)) { _cachedWeather = weather; _messenger.Publish(new WeatherChangedMessage(this, weather.Temperature, weather.WeatherCondition)); } }