mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-30 19:56:54 +00:00
17 lines
No EOL
623 B
C#
17 lines
No EOL
623 B
C#
using NzbDrone.Common.Messaging;
|
|
using NzbDrone.Core.Messaging.Commands;
|
|
|
|
namespace NzbDrone.Core.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 : Command;
|
|
void PublishCommand(string commandTypeName);
|
|
Command PublishCommandAsync<TCommand>(TCommand command) where TCommand : Command;
|
|
Command PublishCommandAsync(string commandTypeName);
|
|
}
|
|
} |