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); }
protected override async Task OnStartAsync(DialogContext innerDc, CancellationToken cancellationToken = default(CancellationToken)) { var onboardingAccessor = _userState.CreateProperty <OnboardingState>(nameof(OnboardingState)); var onboardingState = await onboardingAccessor.GetAsync(innerDc.Context, () => new OnboardingState()); var view = new MainResponses(); await view.ReplyWith(innerDc.Context, MainResponses.Intro); if (string.IsNullOrEmpty(onboardingState.Name)) { // This is the first time the user is interacting with the bot, so gather onboarding information. await innerDc.BeginDialogAsync(nameof(OnboardingDialog)); } }