You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

10 lines
380 B

namespace Wood.EventBus
{
public interface IEventBus
{
void Subscribe<T, TH>(TH handler) where T : IntegrationEvent where TH : IIntegrationEventHandler<T>;
void Unsubscribe<T, TH>() where T : IntegrationEvent where TH : IIntegrationEventHandler<T>;
Task PublishAsync<T>(T @event) where T : IntegrationEvent;
void Publish<T>(T @event) where T : IntegrationEvent;
}
}