using System; using System.Collections.Generic; using System.Text; namespace Microsoft.eShopOnContainers.Services.Common.Infrastructure { public interface IEventBus { void Subscribe(IIntegrationEventHandler handler) where T: IntegrationEventBase; void Unsubscribe(IIntegrationEventHandler handler) where T : IntegrationEventBase; void Publish(IntegrationEventBase @event); } }