Beispiel #1
0
 //private async Task AfterQnADialog(IDialogContext context, IAwaitable<object> result)
 private async Task AfterQnADialog(IDialogContext context, IAwaitable <IMessageActivity> result)
 {
     //var answerFound = await result;
     Debug.WriteLine("AfterQnADialog: ");
     // we might want to send a message or take some action if no answer was found (false returned)
     if (result.Equals(null))
     {
         Debug.WriteLine("AfterQnADialog: no answer found");
         await context.PostAsync("I’m not sure what you want. Try another query.");
     }
     context.Wait(MessageReceived);
     //throw new NotImplementedException();
 }