1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00
Sonarr/NzbDrone.Common/Messaging/IMessageAggregator.cs

12 lines
407 B
C#
Raw Normal View History

namespace NzbDrone.Common.Messaging
{
/// <summary>
2013-02-23 23:09:44 +03:00
/// Enables loosely-coupled publication of events.
/// </summary>
public interface IMessageAggregator
{
2013-05-13 05:52:55 +03:00
void PublishEvent<TEvent>(TEvent @event) where TEvent : class, IEvent;
void PublishCommand<TCommand>(TCommand command) where TCommand : class, ICommand;
void PublishCommand(string commandType);
}
}