public async Task Handle(ApplicationStatusChangedToGrantedIntegrationEvent @event) { var subscriptions = await _retriever.GetSubscriptionsOfType(WebhookType.ApplicationGranted); _logger.LogInformation("Received ApplicationStatusChangedToGrantedIntegrationEvent and got {SubscriptionCount} subscriptions to process", subscriptions.Count()); var whook = new WebhookData(WebhookType.ApplicationGranted, @event); await _sender.SendAll(subscriptions, whook); }
public async Task Handle(OrderStatusChangedToPaidIntegrationEvent @event) { var subscriptions = await _retriever.GetSubscriptionsOfType(WebhookType.OrderPaid); _logger.LogInformation($"Received OrderStatusChangedToShippedIntegrationEvent and got {subscriptions.Count()} subscriptions to process"); var whook = new WebhookData(WebhookType.OrderPaid, @event); await _sender.SendAll(subscriptions, whook); }
public async Task Handle(ScholarshipItemAmountChangedIntegrationEvent @event) { var subscriptions = await _retriever.GetSubscriptionsOfType(WebhookType.ScholarshipItemAmountChange); _logger.LogInformation("Received ScholarshipItemAmountChangedIntegrationEvent and got {SubscriptionsCount} subscriptions to process", subscriptions.Count()); var whook = new WebhookData(WebhookType.ScholarshipItemAmountChange, @event); await _sender.SendAll(subscriptions, whook); }