Browse Source

Minor refactoring/order for the IEventBus interface

pull/408/head
Cesar De la Torre 7 years ago
parent
commit
95ec2c780a
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      src/BuildingBlocks/EventBus/EventBus/Abstractions/IEventBus.cs

+ 3
- 2
src/BuildingBlocks/EventBus/EventBus/Abstractions/IEventBus.cs View File

@ -5,9 +5,12 @@ namespace Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Abstractions
{
public interface IEventBus
{
void Publish(IntegrationEvent @event);
void Subscribe<T, TH>()
where T : IntegrationEvent
where TH : IIntegrationEventHandler<T>;
void SubscribeDynamic<TH>(string eventName)
where TH : IDynamicIntegrationEventHandler;
@ -17,7 +20,5 @@ namespace Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Abstractions
void Unsubscribe<T, TH>()
where TH : IIntegrationEventHandler<T>
where T : IntegrationEvent;
void Publish(IntegrationEvent @event);
}
}

Loading…
Cancel
Save