|
|
@ -1,12 +1,7 @@ |
|
|
|
namespace SagaManager.IntegrationEvents |
|
|
|
{ |
|
|
|
using System.Data.Common; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Microsoft.EntityFrameworkCore; |
|
|
|
using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Abstractions; |
|
|
|
using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Events; |
|
|
|
using Microsoft.eShopOnContainers.BuildingBlocks.IntegrationEventLogEF.Services; |
|
|
|
using Microsoft.eShopOnContainers.Services.Ordering.Infrastructure; |
|
|
|
using System; |
|
|
|
|
|
|
|
public class SagaManagingIntegrationEventService : ISagaManagingIntegrationEventService |
|
|
@ -18,7 +13,7 @@ |
|
|
|
_eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus)); |
|
|
|
} |
|
|
|
|
|
|
|
public void PublishThroughEventBusAsync(IntegrationEvent evt) |
|
|
|
public void PublishThroughEventBus(IntegrationEvent evt) |
|
|
|
{ |
|
|
|
_eventBus.Publish(evt); |
|
|
|
} |
|
|
|