public async Task SaveEventAndCatalogContextChangesAsync(IntegrationEvent evt) { _logger.LogInformation("----- CatalogIntegrationEventService - Saving changes and integrationEvent: {IntegrationEventId}", evt.Id); await ResilientTransaction.New(_gestaoProcessoIndustrialDbContext).ExecuteAsync(async() => { await _gestaoProcessoIndustrialDbContext.SaveChangesAsync(); await _eventLogService.SaveEventAsync(evt, _gestaoProcessoIndustrialDbContext.Database.CurrentTransaction); }); }
public async Task <int> CommitAsync() { return(await _context.SaveChangesAsync()); }