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); }
public async Task Handle(GithubPushNotification notification) { await SendTeamsInformationAsync(notification); }