Skip to content

Commit 95ec2c7

Browse files
Minor refactoring/order for the IEventBus interface
1 parent 338d911 commit 95ec2c7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • src/BuildingBlocks/EventBus/EventBus/Abstractions

src/BuildingBlocks/EventBus/EventBus/Abstractions/IEventBus.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@ namespace Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Abstractions
55
{
66
public interface IEventBus
77
{
8+
void Publish(IntegrationEvent @event);
9+
810
void Subscribe<T, TH>()
911
where T : IntegrationEvent
1012
where TH : IIntegrationEventHandler<T>;
13+
1114
void SubscribeDynamic<TH>(string eventName)
1215
where TH : IDynamicIntegrationEventHandler;
1316

@@ -17,7 +20,5 @@ void UnsubscribeDynamic<TH>(string eventName)
1720
void Unsubscribe<T, TH>()
1821
where TH : IIntegrationEventHandler<T>
1922
where T : IntegrationEvent;
20-
21-
void Publish(IntegrationEvent @event);
2223
}
2324
}

0 commit comments

Comments
 (0)