Beispiel #1
0
        protected virtual async Task <InterruptionStatus> OnHelp(DialogContext dc)
        {
            var view = new MainResponses();
            await view.ReplyWith(dc.Context, MainResponses.Help);

            // Signal the conversation was interrupted and should immediately continue
            return(InterruptionStatus.Interrupted);
        }
Beispiel #2
0
        protected override async Task OnStartAsync(DialogContext innerDc, CancellationToken cancellationToken = default(CancellationToken))
        {
            var state = await _stateAccessor.GetAsync(innerDc.Context, () => new CustomerSupportTemplateState());

            if (!state.IntroSent)
            {
                var view = new MainResponses();
                await view.ReplyWith(innerDc.Context, MainResponses.Intro);

                state.IntroSent = true;
            }
        }