2013-04-24 03:56:00 +02:00
|
|
|
|
namespace NzbDrone.Common.Messaging
|
2013-02-19 03:37:16 +01:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2013-02-23 21:09:44 +01:00
|
|
|
|
/// Enables loosely-coupled publication of events.
|
2013-02-19 03:37:16 +01:00
|
|
|
|
/// </summary>
|
2013-04-24 03:56:00 +02:00
|
|
|
|
public interface IMessageAggregator
|
2013-02-19 03:37:16 +01:00
|
|
|
|
{
|
2013-05-13 04:52:55 +02: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-19 03:37:16 +01:00
|
|
|
|
}
|
|
|
|
|
}
|