public async Task <WeatherForecastDto> Handle(GetByCityNameFromXmlResponseQuery request, CancellationToken cancellationToken) { var current = await _weatherClient.GetCurrentWeatherInXmlByCityNameAsync(request.City); if (current == null) { //TODO: logging return(new()); } var weatherForecastDto = _mapper.Map <WeatherForecastDto>(current); var gotWeatherForecast = _mapper.Map <IGotWeatherForecast>(weatherForecastDto); await _publishEndpoint.Publish(gotWeatherForecast); return(weatherForecastDto); }