You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
623 B
17 lines
623 B
11 years ago
|
using NzbDrone.Common.Messaging;
|
||
|
using NzbDrone.Core.Messaging.Commands;
|
||
11 years ago
|
|
||
11 years ago
|
namespace NzbDrone.Core.Messaging
|
||
12 years ago
|
{
|
||
|
/// <summary>
|
||
12 years ago
|
/// Enables loosely-coupled publication of events.
|
||
12 years ago
|
/// </summary>
|
||
12 years ago
|
public interface IMessageAggregator
|
||
12 years ago
|
{
|
||
12 years ago
|
void PublishEvent<TEvent>(TEvent @event) where TEvent : class, IEvent;
|
||
11 years ago
|
void PublishCommand<TCommand>(TCommand command) where TCommand : Command;
|
||
11 years ago
|
void PublishCommand(string commandTypeName);
|
||
11 years ago
|
Command PublishCommandAsync<TCommand>(TCommand command) where TCommand : Command;
|
||
|
Command PublishCommandAsync(string commandTypeName);
|
||
12 years ago
|
}
|
||
|
}
|