Esempio n. 1
0
        public async Task <StepResult> ProcessAsync(IDialogContext context, T state, FormState form, IMessageActivity input, IEnumerable <TermMatch> matches)
        {
            NextStep next;

            form.Next = null;
            var val = matches.First().Value;

            if (val == null)
            {
                next = new NextStep();
            }
            else
            {
                next = new NextStep(new string[] { (string)val });
            }
            return(new StepResult(true, next, feedback: null, prompt: null));
        }