2013-08-31 06:08:19 +03:00
|
|
|
using NzbDrone.Common.Messaging.Tracking;
|
|
|
|
|
|
|
|
namespace NzbDrone.Common.Messaging
|
2013-02-19 05:37:16 +03:00
|
|
|
{
|
|
|
|
/// <summary>
|
2013-02-23 23:09:44 +03:00
|
|
|
/// Enables loosely-coupled publication of events.
|
2013-02-19 05:37:16 +03:00
|
|
|
/// </summary>
|
2013-04-24 04:56:00 +03:00
|
|
|
public interface IMessageAggregator
|
2013-02-19 05:37:16 +03:00
|
|
|
{
|
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;
|
2013-08-31 06:08:19 +03:00
|
|
|
void PublishCommand(string commandTypeName);
|
|
|
|
TrackedCommand PublishCommandAsync<TCommand>(TCommand command) where TCommand : class, ICommand;
|
|
|
|
TrackedCommand PublishCommandAsync(string commandTypeName);
|
2013-02-19 05:37:16 +03:00
|
|
|
}
|
|
|
|
}
|