In Microsoft Bot-Framework Tutorial Get Started der folgende Code'Extensions.GetBotPerUserInConversationData <TypeT> (Message, string)' wirft Ausnahme
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;
}
Hat zwei Compiler-Fehler
Error CS7036 There is no argument given that corresponds to the required
formal parameter 'property' of
'Extensions.GetBotPerUserInConversationData<TypeT>(Message, string)'
und
Error CS7036 There is no argument given that corresponds to the required
formal parameter 'data' of
'Extensions.SetBotPerUserInConversationData(Message, string, object)'
Soll es eine andere Bibliothek geben? t erweitert die Klasse "Nachricht"? Ich kann keine Referenz oder Dokumentation auf MSDN finden.
Danke, Sie sind richtig, das sind Compilerfehler und keine Ausnahmen. Ich war um 5 Uhr morgens;) –