Bot Framework - IDialogStack.PollAsync deprecated after 3.5.0

后端 未结 1 1829
醉酒成梦
醉酒成梦 2021-01-23 20:35

I\'m looking at the core-CreateNewConversation sample in the Bot builder examples repo (https://github.com/Microsoft/BotBuilder-Samples). There is a method available on IDialogS

1条回答
  •  再見小時候
    2021-01-23 21:36

    In reality, it was just moved from the IDialogStack class to the IDialogTask class.

    Instead of doing:

    IDialogStack stack = stack = scope.Resolve();
    

    you have to do

    IDialogTask task = scope.Resolve();
    

    then you can just do:

    task.Call(interruption, null);
    await task.PollAsync(token);
    

    There is a pull request that is updating the sample taking into account this change.

    0 讨论(0)
提交回复
热议问题