机器人框架突然停止渲染html,我附上了截图。会出什么问题呢?我使用的是3.5.31版本,这是最新的版本。我已经使用了Bot应用程序模板,该模板在创建新的BOT项目时默认可用。
下面是我写的代码
[Serializable]
public class RootDialog : IDialog<object>
{
public Task StartAsync(IDialogContext context)
{
context.Wait(MessageReceivedAsync);
return Task.CompletedTask;
}
private async Task MessageReceivedAsync(IDialogContext context, IAwaitable<object> result)
{
PromptDialog.Text(context, resumeAfter, "Enter your name", "Didn't get that",
3
);
}
private async Task resumeAfter(IDialogContext context, IAwaitable<string> result)
{
string answer = await result;
await context.PostAsync($"Hello <i><b>{answer}</b></i>");
}
}

发布于 2017-08-03 18:29:02
这是here报道的。而且它看起来像是在WebChat控件中设计的(这就是仿真器在幕后使用的)。查看WebChat控件中的更改:https://github.com/Microsoft/BotFramework-WebChat/commit/a5cd8cffb7a97fb925e4078dbe1085694fa92f80
https://stackoverflow.com/questions/45476100
复制相似问题