private async Task MessageReceivedAsync(IDialogContext context, IAwaitable <object> result) { var activity = await result as Activity; //var city = activity.Text ?? string.Empty; var query = activity.Text ?? string.Empty; var luisInformaion = await LuisHelper.ParseTextAsync(query); var city = GetCityName(luisInformaion); var weatherInforamion = await OpenWeatherAPIHelper.GetWeatherDataAsync(city); var weatherstring = GetWeather(weatherInforamion); await context.PostAsync(weatherstring); context.Wait(MessageReceivedAsync); }