/// <summary> /// Add and save the event async /// </summary> /// <param name="evt"></param> /// <returns></returns> public async Task AddAndSaveEventAsync(IntegrationEvent evt) { // Log enqueuing integration event _logger.LogInformation("----- Enqueuing integration event {IntegrationEventId} to repository ({@IntegrationEvent})", evt.Id, evt); // Save the event async await _eventLogService.SaveEventAsync(evt, _orderingContext.GetCurrentTransaction()); }
public async Task AddAndSaveEventAsync(IntegrationEvent integrationEvent) { _logger.LogInformation($"----- Enqueuing integration event {integrationEvent.Id} to repository ({integrationEvent})"); var currentTransaction = _orderingContext.GetCurrentTransaction(); await IntegrationEventLogService.SaveEventAsync(integrationEvent, currentTransaction); }