Example #1
0
        protected override async Task OnMembersAddedAsync(IList <ChannelAccount> membersAdded, ITurnContext <IConversationUpdateActivity> turnContext, CancellationToken cancellationToken)
        {
            foreach (var member in membersAdded)
            {
                if (member.Id != turnContext.Activity.Recipient.Id)
                {
                    CardGenerator cardGenerator = new CardGenerator();
                    await cardGenerator.AttachServiceCardAsync(turnContext, cancellationToken);

                    LoginRequest.Logout();
                }
            }
        }