Exemple #1
0
        private async Task SendTeamsInformationAsync(GithubPushNotification notification)
        {
            var githubModel = notification.GithubModel;

            if (githubModel.Deleted)
            {
                return;
            }

            (var title, var text) = BuildMessage(githubModel);

            var cardData = new SuccessfulTeamsActivityCardData
            {
                Title = title,
                Text  = text
            };

            await Room.SendTeamsActivityCardAsync(cardData);
        }
Exemple #2
0
 public async Task Handle(GithubPushNotification notification)
 {
     await SendTeamsInformationAsync(notification);
 }