From 587de20d852436ae6e96b4f7652de3c258790d15 Mon Sep 17 00:00:00 2001 From: Christian Arenas Date: Tue, 16 May 2017 18:57:36 +0200 Subject: [PATCH] revert the last changes --- .../EventHandling/OrderPaymentFailedIntegrationEventHandler.cs | 2 +- .../OrderPaymentSuccededIntegrationEventHandler.cs | 2 +- .../EventHandling/OrderStockConfirmedIntegrationEventHandler.cs | 2 +- .../OrderStockNotConfirmedIntegrationEventHandler.cs | 2 +- src/Services/SagaManager/SagaManager/Program.cs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Services/Ordering/Ordering.API/Application/IntegrationEvents/EventHandling/OrderPaymentFailedIntegrationEventHandler.cs b/src/Services/Ordering/Ordering.API/Application/IntegrationEvents/EventHandling/OrderPaymentFailedIntegrationEventHandler.cs index 49b252e4a..3f81f8f67 100644 --- a/src/Services/Ordering/Ordering.API/Application/IntegrationEvents/EventHandling/OrderPaymentFailedIntegrationEventHandler.cs +++ b/src/Services/Ordering/Ordering.API/Application/IntegrationEvents/EventHandling/OrderPaymentFailedIntegrationEventHandler.cs @@ -21,7 +21,7 @@ orderToUpdate.SetCancelledStatus(); - await _orderRepository.UnitOfWork.SaveChangesAsync(); + await _orderRepository.UnitOfWork.SaveEntitiesAsync(); } } } diff --git a/src/Services/Ordering/Ordering.API/Application/IntegrationEvents/EventHandling/OrderPaymentSuccededIntegrationEventHandler.cs b/src/Services/Ordering/Ordering.API/Application/IntegrationEvents/EventHandling/OrderPaymentSuccededIntegrationEventHandler.cs index fc813ff2d..80144d0ed 100644 --- a/src/Services/Ordering/Ordering.API/Application/IntegrationEvents/EventHandling/OrderPaymentSuccededIntegrationEventHandler.cs +++ b/src/Services/Ordering/Ordering.API/Application/IntegrationEvents/EventHandling/OrderPaymentSuccededIntegrationEventHandler.cs @@ -21,7 +21,7 @@ orderToUpdate.SetPaidStatus(); - await _orderRepository.UnitOfWork.SaveChangesAsync(); + await _orderRepository.UnitOfWork.SaveEntitiesAsync(); } } } \ No newline at end of file diff --git a/src/Services/Ordering/Ordering.API/Application/IntegrationEvents/EventHandling/OrderStockConfirmedIntegrationEventHandler.cs b/src/Services/Ordering/Ordering.API/Application/IntegrationEvents/EventHandling/OrderStockConfirmedIntegrationEventHandler.cs index 172444932..ac4bc5936 100644 --- a/src/Services/Ordering/Ordering.API/Application/IntegrationEvents/EventHandling/OrderStockConfirmedIntegrationEventHandler.cs +++ b/src/Services/Ordering/Ordering.API/Application/IntegrationEvents/EventHandling/OrderStockConfirmedIntegrationEventHandler.cs @@ -21,7 +21,7 @@ orderToUpdate.SetStockConfirmedStatus(); - await _orderRepository.UnitOfWork.SaveChangesAsync(); + await _orderRepository.UnitOfWork.SaveEntitiesAsync(); } } } \ No newline at end of file diff --git a/src/Services/Ordering/Ordering.API/Application/IntegrationEvents/EventHandling/OrderStockNotConfirmedIntegrationEventHandler.cs b/src/Services/Ordering/Ordering.API/Application/IntegrationEvents/EventHandling/OrderStockNotConfirmedIntegrationEventHandler.cs index 918e4f094..f3003c0a4 100644 --- a/src/Services/Ordering/Ordering.API/Application/IntegrationEvents/EventHandling/OrderStockNotConfirmedIntegrationEventHandler.cs +++ b/src/Services/Ordering/Ordering.API/Application/IntegrationEvents/EventHandling/OrderStockNotConfirmedIntegrationEventHandler.cs @@ -27,7 +27,7 @@ namespace Ordering.API.Application.IntegrationEvents.EventHandling orderToUpdate.SetStockConfirmedStatus(orderStockNotConfirmedItems); - await _orderRepository.UnitOfWork.SaveChangesAsync(); + await _orderRepository.UnitOfWork.SaveEntitiesAsync(); } } } \ No newline at end of file diff --git a/src/Services/SagaManager/SagaManager/Program.cs b/src/Services/SagaManager/SagaManager/Program.cs index 95105b23b..c902492cd 100644 --- a/src/Services/SagaManager/SagaManager/Program.cs +++ b/src/Services/SagaManager/SagaManager/Program.cs @@ -45,7 +45,7 @@ namespace SagaManager while (true) { sagaManagerService.CheckFinishedGracePeriodOrders(); - await Task.Delay(30000); + await Task.Delay(90000); } }