예제 #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 SendTeamsActivityCardAsync(cardData);
        }
예제 #2
0
 public async Task Handle(GithubPushNotification notification)
 {
     await SendTeamsInformationAsync(notification);
 }