Следующая проблема отлично работает в эмуляторе, но не работает в командах.
Диалог открывает диалог QnA Maker.Перед запуском QnA - он получает видеокарту при первом входе пользователя в диалог.Изначально я думал, что есть какая-то проблема с использованием QnA Maker в командах - но по прихоти я закомментировал часть шага с видеокартой (или точнее ... весь приведенный ниже код) - и теперь это работает!
Есть ли проблема ниже, которая замерзнет шаг (только в командах) будет принята с благодарностью!(есть какие-то проблемы с видеокартами в командах?)
var welcomeUserState = await (stepContext.Context.TurnState["DialogBotConversationStateAndUserStateAccessor"] as DialogBotConversationStateAndUserStateAccessor).WelcomeUserState.GetAsync(stepContext.Context);
if (welcomeUserState.DidSeeVideo == false)
{
welcomeUserState.DidSeeVideo = true;
// WaterfallStep always finishes with the end of the Waterfall or with another dialog; here it is a Prompt Dialog.
// Running a prompt here means the next WaterfallStep will be run when the users response is received.
//await stepContext.Context.SendActivityAsync(MessageFactory.Text($"THIRD WATERFALL STEP 1: This is the first step. You can put your code in each of these steps."), cancellationToken);
var reply = stepContext.Context.Activity.CreateReply();
reply.Attachments = new List<Attachment>();
reply.Attachments.Add(GetVideoCard().ToAttachment());
// Send the card(s) to the user as an attachment to the activity
await stepContext.Context.SendActivityAsync(reply, cancellationToken);
await Task.Delay(3000);
}
Выше код и проект здесь: https://github.com/andrewchungxam/2019ITBot/blob/master/MultiDialogsWithAccessorBotV4/Dialogs/ThirdWaterfallDialog.cs
Ошибка в портале Azure: 06.02.2009, 1:19:24PM Malformed Video card - Неверное значение аспекта