Remove async sufix from PublishThroughEventBus method name
This commit is contained in:
parent
5cd8265bb5
commit
83dadc878b
@ -4,6 +4,6 @@
|
||||
|
||||
public interface ISagaManagingIntegrationEventService
|
||||
{
|
||||
void PublishThroughEventBusAsync(IntegrationEvent evt);
|
||||
void PublishThroughEventBus(IntegrationEvent evt);
|
||||
}
|
||||
}
|
@ -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);
|
||||
}
|
||||
|
@ -16,6 +16,7 @@ namespace SagaManager
|
||||
using Microsoft.Extensions.Options;
|
||||
using RabbitMQ.Client;
|
||||
using Services;
|
||||
|
||||
|
||||
public class Program
|
||||
{
|
||||
|
@ -66,7 +66,7 @@ namespace SagaManager.Services
|
||||
var confirmGracePeriodEvent = new ConfirmGracePeriodCommandMsg(orderId);
|
||||
|
||||
// Publish through the Event Bus
|
||||
_sagaManagingIntegrationEventService.PublishThroughEventBusAsync(confirmGracePeriodEvent);
|
||||
_sagaManagingIntegrationEventService.PublishThroughEventBus(confirmGracePeriodEvent);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user