Exemplo n.º 1
0
        public RootDialog(HandoffDialog handoffDialog,
                          EchoDialog echoDialog)
            : base(nameof(RootDialog))
        {
            AddDialog(handoffDialog);
            AddDialog(echoDialog);

            AddDialog(new WaterfallDialog(nameof(WaterfallDialog), new WaterfallStep[]
            {
                InitialStepAsync,
                FinalStepAsync,
            }));

            InitialDialogId = nameof(WaterfallDialog);
        }
Exemplo n.º 2
0
        public EchoDialog(ConversationState conversationState,
                          HandoffDialog handoffDialog)
            : base(nameof(EchoDialog))
        {
            _conversationState = conversationState;

            AddDialog(handoffDialog);

            AddDialog(new TextPrompt(nameof(TextPrompt)));
            AddDialog(new WaterfallDialog(nameof(WaterfallDialog), new WaterfallStep[]
            {
                MessagePromptStepAsync,
                EchoLoopStepAsync
            }));

            InitialDialogId = nameof(WaterfallDialog);
        }