using NzbDrone.Common.Messaging.Tracking;
namespace NzbDrone.Common.Messaging
{
///
/// Enables loosely-coupled publication of events.
///
public interface IMessageAggregator
{
void PublishEvent(TEvent @event) where TEvent : class, IEvent;
void PublishCommand(TCommand command) where TCommand : class, ICommand;
void PublishCommand(string commandTypeName);
TrackedCommand PublishCommandAsync(TCommand command) where TCommand : class, ICommand;
TrackedCommand PublishCommandAsync(string commandTypeName);
}
}