Пример #1
0
        private async Task SendCandidateDetailsMessage(IDialogContext context, Candidate c)
        {
            IMessageActivity reply = context.MakeMessage();

            reply.Attachments = new List <Attachment>();

            AdaptiveCard card       = CardHelper.CreateFullCardForCandidate(c);
            Attachment   attachment = new Attachment()
            {
                ContentType = AdaptiveCard.ContentType,
                Content     = card
            };

            reply.Attachments.Add(attachment);
            System.Diagnostics.Debug.WriteLine(card.ToJson());

            await context.PostAsync(reply);
        }