private static async Task SendWelcomeMessageAsync(ITurnContext turnContext, CancellationToken cancellationToken) { foreach (var member in turnContext.Activity.MembersAdded) { if (member.Id != turnContext.Activity.Recipient.Id) { var view = new MainResponses(); await view.ReplyWith(turnContext, MainResponses.Intro); //await turnContext.SendActivityAsync( // $"", // cancellationToken: cancellationToken); } } }
private async Task <DialogTurnResult> ShowGGoodbye(WaterfallStepContext stepContext, CancellationToken cancellationToken) { await _responder.ReplyWith(stepContext.Context, MainResponses.Goodbye); return(await stepContext.EndDialogAsync()); }
private async Task <DialogTurnResult> FinalStepAsync(WaterfallStepContext stepContext, CancellationToken cancellationToken) { await _responder.ReplyWith(stepContext.Context, "What else can I help you with?"); return(await stepContext.EndDialogAsync(null, cancellationToken)); }