コード例 #1
0
 /// <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());
 }
コード例 #2
0
        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);
        }