示例#1
0
        public FilterDialog(WikiDataHelpDeskRecognizer luisRecognizer)
            : base(nameof(FilterDialog))
        {
            _luisRecognizer = luisRecognizer;
            AddDialog(new TextPrompt(nameof(TextPrompt)));

            AddDialog(new WaterfallDialog(nameof(WaterfallDialog), new WaterfallStep[]
            {
                GiveBackNumberOfElements,
                LoopStepAsync,
            }));

            InitialDialogId = nameof(WaterfallDialog);
        }
示例#2
0
        // Dependency injection uses this constructor to instantiate MainDialog
        public MainDialog(WikiDataHelpDeskRecognizer luisRecognizer, FilterDialog filterDialog)
            : base(nameof(MainDialog))
        {
            _luisRecognizer = luisRecognizer;

            AddDialog(new TextPrompt(nameof(TextPrompt)));
            AddDialog(filterDialog);
            AddDialog(new WaterfallDialog(nameof(WaterfallDialog), new WaterfallStep[]
            {
                IntroStepAsync,
                ActStepAsync,
                FinalStepAsync,
            }));

            // The initial child Dialog to run.
            InitialDialogId = nameof(WaterfallDialog);
        }