2013-09-11 06:33:47 +00:00
|
|
|
using NzbDrone.Common.Messaging;
|
|
|
|
|
2013-09-14 06:36:07 +00:00
|
|
|
namespace NzbDrone.Core.Messaging.Events
|
2013-02-19 02:37:16 +00:00
|
|
|
{
|
2013-04-27 02:03:34 +00:00
|
|
|
public interface IHandle<TEvent> : IProcessMessage<TEvent> where TEvent : IEvent
|
2013-02-19 02:37:16 +00:00
|
|
|
{
|
2013-02-24 19:18:48 +00:00
|
|
|
void Handle(TEvent message);
|
2013-02-19 02:37:16 +00:00
|
|
|
}
|
|
|
|
|
2013-04-27 02:03:34 +00:00
|
|
|
public interface IHandleAsync<TEvent> : IProcessMessageAsync<TEvent> where TEvent : IEvent
|
2013-03-05 06:25:05 +00:00
|
|
|
{
|
|
|
|
void HandleAsync(TEvent message);
|
|
|
|
}
|
2013-02-19 02:37:16 +00:00
|
|
|
}
|