在 Microsoft Bot Framework Tutorial Get Started 以下代码
if (message.Type == "Message")
{
// fetch our state associated with a user in a conversation. If we don't have state, we get default(T)
var counter = message.GetBotPerUserInConversationData<int>();
// create a reply message
Message replyMessage = message.CreateReplyMessage($"{++counter} You said:{message.Text}");
// save our new counter by adding it to the outgoing message
replyMessage.SetBotPerUserInConversationData(counter);
// return our reply to the user
return replyMessage;
}
有两个编译器错误
Error CS7036 There is no argument given that corresponds to the required
formal parameter 'property' of
'Extensions.GetBotPerUserInConversationData<TypeT>(Message, string)'
和
Error CS7036 There is no argument given that corresponds to the required
formal parameter 'data' of
'Extensions.SetBotPerUserInConversationData(Message, string, object)'
是否假设有另一个扩展“消息”类的库?我无法在 MSDN 上找到参考或文档。