我正在尝试对话链。这个样本究竟应该做什么?当我尝试它时,我没有得到任何结果。
public async Task MessageReceivedAsync(IDialogContext context, IAwaitable<Message> argument)
{
var message = await argument;
if (message.Text == "start")
{
var query = from x in new PromptDialog.PromptString("p1", "p1", 1)
from y in new PromptDialog.PromptString("p2", "p2", 1)
select string.Join(" ", x, y);
query.PostToUser();
context.Wait(MessageReceivedAsync);
}
机器人测试器: