Skip to content

Commit 83dadc8

Browse files
committed
Remove async sufix from PublishThroughEventBus method name
1 parent 5cd8265 commit 83dadc8

4 files changed

Lines changed: 4 additions & 8 deletions

File tree

src/Services/SagaManager/SagaManager/IntegrationEvents/ISagaManagingIntegrationEventService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
public interface ISagaManagingIntegrationEventService
66
{
7-
void PublishThroughEventBusAsync(IntegrationEvent evt);
7+
void PublishThroughEventBus(IntegrationEvent evt);
88
}
99
}

src/Services/SagaManager/SagaManager/IntegrationEvents/SagaManagingIntegrationEventService.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
namespace SagaManager.IntegrationEvents
22
{
3-
using System.Data.Common;
4-
using System.Threading.Tasks;
5-
using Microsoft.EntityFrameworkCore;
63
using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Abstractions;
74
using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Events;
8-
using Microsoft.eShopOnContainers.BuildingBlocks.IntegrationEventLogEF.Services;
9-
using Microsoft.eShopOnContainers.Services.Ordering.Infrastructure;
105
using System;
116

127
public class SagaManagingIntegrationEventService : ISagaManagingIntegrationEventService
@@ -18,7 +13,7 @@ public SagaManagingIntegrationEventService(IEventBus eventBus)
1813
_eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus));
1914
}
2015

21-
public void PublishThroughEventBusAsync(IntegrationEvent evt)
16+
public void PublishThroughEventBus(IntegrationEvent evt)
2217
{
2318
_eventBus.Publish(evt);
2419
}

src/Services/SagaManager/SagaManager/Program.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ namespace SagaManager
1616
using Microsoft.Extensions.Options;
1717
using RabbitMQ.Client;
1818
using Services;
19+
1920

2021
public class Program
2122
{

src/Services/SagaManager/SagaManager/Services/SagaManagerService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ private void Publish(int orderId)
6666
var confirmGracePeriodEvent = new ConfirmGracePeriodCommandMsg(orderId);
6767

6868
// Publish through the Event Bus
69-
_sagaManagingIntegrationEventService.PublishThroughEventBusAsync(confirmGracePeriodEvent);
69+
_sagaManagingIntegrationEventService.PublishThroughEventBus(confirmGracePeriodEvent);
7070
}
7171
}
7272
}

0 commit comments

Comments
 (0)