private async Task StartConversation(DialogContext dc, CancellationToken cancellationToken = default(CancellationToken)) { var onboardingState = await _onboardingState.GetAsync(dc.Context, () => new OnboardingState()); var view = new MainResponses(); await view.ReplyWith(dc.Context, MainResponses.ResponseIds.Intro); if (string.IsNullOrEmpty(onboardingState.Name)) { // This is the first time the user is interacting with the bot, so gather onboarding information. await dc.BeginDialogAsync(nameof(OnboardingDialog)); } }
private async Task StartConversation(DialogContext dc, CancellationToken cancellationToken = default(CancellationToken)) { var view = new MainResponses(); await view.ReplyWith(dc.Context, MainResponses.ResponseIds.Intro); }