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