Beispiel #1
0
        private async Task OnOptionSelected(IDialogContext context, IAwaitable <IMessageActivity> result)
        {
            var message = await result;

            if (message.Text == Resources.RootDialog_Welcome_Orders)
            {
                context.Call(_dialogFactory.Create <ProductsDialog>(), Callback);
            }
            else if (message.Text == Resources.RootDialog_Welcome_Support)
            {
                await OtherDialog.StartOverAsync(context, Resources.RootDialog_Support_Message);
            }
            else
            {
                context.Done(message);
            }
        }
 public async Task Greeting(IDialogContext context, LuisResult result)
 {
     context.Call(dialogFactory.Create <GreetingDialog>(), Callback);
 }