Beispiel #1
0
        private async Task WelcomeDialogCallback(IDialogContext context, IAwaitable <object> result)
        {
            var obj = await result as string;

            if (string.Equals(obj, Ok))
            {
                context.FinishUserRegistration();
                await context.PostAsync("Se você tiver alguma dúvida é só me pedir ajuda!");
            }
            else if (string.Equals(obj, Error))
            {
                var msg = context.MakeMessage();
                msg.Type = ActivityTypes.EndOfConversation;
                await context.PostAsync(msg);
            }

            context.Wait(MessageReceivedAsync);
        }