mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-27 22:56:45 -04:00
NzbDrone is getting on a bus! (added EventAggregator)
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using System.Linq;
|
||||
|
||||
namespace NzbDrone.Common.Eventing
|
||||
{
|
||||
/// <summary>
|
||||
/// Denotes a class which can handle a particular type of message.
|
||||
/// </summary>
|
||||
/// <typeparam name = "TMessage">The type of message to handle.</typeparam>
|
||||
public interface IHandle<TMessage> : IHandle
|
||||
{
|
||||
/// <summary>
|
||||
/// Handles the message.
|
||||
/// </summary>
|
||||
/// <param name = "message">The message.</param>
|
||||
void Handle(TMessage message);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// A marker interface for classes that subscribe to messages.
|
||||
/// </summary>
|
||||
public interface IHandle { }
|
||||
}
|
||||
Reference in New Issue
Block a user