2017-03-09 15:56:34 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace Microsoft.eShopOnContainers.Services.Common.Infrastructure
|
|
|
|
|
{
|
|
|
|
|
public interface IEventBus
|
|
|
|
|
{
|
2017-03-14 09:47:36 +01:00
|
|
|
|
void Subscribe<T>(IIntegrationEventHandler<T> handler) where T: IntegrationEventBase;
|
|
|
|
|
void Unsubscribe<T>(IIntegrationEventHandler<T> handler) where T : IntegrationEventBase;
|
|
|
|
|
void Publish(IntegrationEventBase @event);
|
2017-03-09 15:56:34 +01:00
|
|
|
|
}
|
|
|
|
|
}
|