mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-26 09:47:39 +00:00
12 lines
No EOL
407 B
C#
12 lines
No EOL
407 B
C#
namespace NzbDrone.Common.Messaging
|
|
{
|
|
/// <summary>
|
|
/// Enables loosely-coupled publication of events.
|
|
/// </summary>
|
|
public interface IMessageAggregator
|
|
{
|
|
void PublishEvent<TEvent>(TEvent @event) where TEvent : class, IEvent;
|
|
void PublishCommand<TCommand>(TCommand command) where TCommand : class, ICommand;
|
|
void PublishCommand(string commandType);
|
|
}
|
|
} |