Ejemplo n.º 1
0
 public async Task AddDomainEvent(EventLog eventLog)
 {
     try
     {
         await _eventLogRepository.Add(eventLog);
     }
     catch (Exception exception)
     {
         _logger.Error(exception, "Unable to save domain event into repository for correlation {CorrelationId}", eventLog.CorrelationId);
         _logger.Error("Event Log {EventLog} with correlation {CorrelationId}", eventLog, eventLog.CorrelationId);
         throw;
     }
 }
Ejemplo n.º 2
0
 public void AuditFailure(IBusinessEvent businessEvent)
 {
     _logger.Error(businessEvent);
 }