public async Task Handle(VacancyReviewCreatedEvent notification, CancellationToken cancellationToken)
        {
            try
            {
                var vacancyReview = await _vacancyReviewRepository.GetAsync(notification.ReviewId);

                await _notifier.VacancyReviewCreated(vacancyReview);
            }
            catch (NotificationException ex)
            {
                _logger.LogError(ex, $"Unable to send notification for {nameof(VacancyReviewCreatedEvent)} and VacancyReference: {{vacancyReference}}", notification.VacancyReference);
            }
        }
Exemplo n.º 2
0
 public Task Handle(VacancyReviewCreatedEvent notification, CancellationToken cancellationToken)
 => HandleUsingEventStore(notification);
 public Task Handle(VacancyReviewCreatedEvent notification, CancellationToken cancellationToken)
 {
     return(Handle(notification));
 }