Radarr/NzbDrone.Common/Messaging/IMessageAggregator.cs

11 lines
343 B
C#
Raw Normal View History

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