Closed felipe-pereira-xpantion closed 7 years ago
Looks like it could be changed to
public async Task AfterCommonResponseHandled(IDialogContext context, IAwaitable<object> result)
{
var messageHandled = await result;
if (!bool.Parse(messageHandled.ToString()))
{
await context.PostAsync("I’m not sure what you want");
}
context.Wait(MessageReceived);
}
It still works this way
Check to have : public class GreetingsDialog : BestMatchDialog<bool>
and not public class GreetingsDialog : BestMatchDialog<object>
Hi. Apologies for the late reply, I have been pretty busy. When you use the BestMatchDialog as your root dialog then the definition should be
public class GreetingsDialog : BestMatchDialog
If you want to use it as a child dialog and return a bool to the resume after method (AfterCommonResponseHandled in the example), then you change the definition to
public class GreetingsDialog : BestMatchDialog
I agree that this is not clear in the readme, so I will update accordingly. Thanks for spotting it and let me know if this doesn't resolve the issue and I can re-open.
Hi, when using the dialog as in the example:
I get Error CS1503 Argument 2: cannot convert from 'method group' to 'ResumeAfter
Any clues about this?
Thanks