2013-04-23 18:56:00 -07:00
|
|
|
namespace NzbDrone.Common.Messaging
|
2013-02-18 18:37:16 -08:00
|
|
|
{
|
|
|
|
/// <summary>
|
2013-02-23 12:09:44 -08:00
|
|
|
/// Enables loosely-coupled publication of events.
|
2013-02-18 18:37:16 -08:00
|
|
|
/// </summary>
|
2013-04-23 18:56:00 -07:00
|
|
|
public interface IMessageAggregator
|
2013-02-18 18:37:16 -08:00
|
|
|
{
|
2013-05-12 19:52:55 -07:00
|
|
|
void PublishEvent<TEvent>(TEvent @event) where TEvent : class, IEvent;
|
|
|
|
void PublishCommand<TCommand>(TCommand command) where TCommand : class, ICommand;
|
|
|
|
void PublishCommand(string commandType);
|
2013-02-18 18:37:16 -08:00
|
|
|
}
|
|
|
|
}
|