Example #1
0
        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);
                }
            }
        }
Example #2
0
        private async Task <DialogTurnResult> ShowGGoodbye(WaterfallStepContext stepContext, CancellationToken cancellationToken)
        {
            await _responder.ReplyWith(stepContext.Context, MainResponses.Goodbye);

            return(await stepContext.EndDialogAsync());
        }
Example #3
0
        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));
        }