问题描述
AddStep(async (stepContext,cancellationToken) =>
{
if (findEntitiyArray[0].score != 1)
{
return await stepContext.PromptAsync("choicePrompt",new PromptOptions
{
Prompt = stepContext.Context.Activity.CreateReply("Unable to find your VM here are some of the closest matches."),Choices = cList
});
}
return await stepContext.NextAsync();
});
cList是一个IList Choice变量,它基于用户的先前输入组成。现在,第一次通过对话框,它就像一种魅力。但是,如果我在AddStep行被点击时再次开始对话框,则cList变量将变回原始值。所以我的问题是AddStep是否存储varialbes或如何将其恢复为首次运行值?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)