Microsoft Bot Framework - Dialog PostToUser

时间:2016-04-24 02:19:18

标签: c# bots botframework

我正在尝试dialog chain。这个样本到底应该做什么?当我尝试它时,我没有结果。

    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);
        }

Bot Tester:

enter image description here

0 个答案:

没有答案