示例#1
0
        private async Task AskChoice(IDialogContext context, string name)
        {
            _profile.Name = name;
            context.UserData.SetValue("profile", _profile);
            string[]       options = { Constants.ConstantStrings.YesGoToMuse, Constants.ConstantStrings.AlreadyWentThere };
            CustomMessages cm      = WebApiApplication.BotStrings["welcome.message"];

            cm.text = String.Format(cm.text, _profile.Name);
            await context.PostAsync(cm.getActivityFromMessage(context));
        }