mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
renamed EventAggregator to MessageAggregator
This commit is contained in:
parent
3638d85314
commit
7ae9e79540
53 changed files with 161 additions and 125 deletions
28
NzbDrone.Common/Messaging/IHandle.cs
Normal file
28
NzbDrone.Common/Messaging/IHandle.cs
Normal file
|
@ -0,0 +1,28 @@
|
|||
namespace NzbDrone.Common.Messaging
|
||||
{
|
||||
/// <summary>
|
||||
/// Denotes a class which can handle a particular type of message.
|
||||
/// </summary>
|
||||
/// <typeparam name = "TEvent">The type of message to handle.</typeparam>
|
||||
public interface IHandle<TEvent> : IProcessMessage where TEvent : IEvent
|
||||
{
|
||||
/// <summary>
|
||||
/// Handles the message synchronously.
|
||||
/// </summary>
|
||||
/// <param name = "message">The message.</param>
|
||||
void Handle(TEvent message);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Denotes a class which can handle a particular type of message.
|
||||
/// </summary>
|
||||
/// <typeparam name = "TEvent">The type of message to handle.</typeparam>
|
||||
public interface IHandleAsync<TEvent> : IProcessMessageAsync where TEvent : IEvent
|
||||
{
|
||||
/// <summary>
|
||||
/// Handles the message asynchronously.
|
||||
/// </summary>
|
||||
/// <param name = "message">The message.</param>
|
||||
void HandleAsync(TEvent message);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue