namespace NzbDrone.Common.Messaging { /// /// Denotes a class which can handle a particular type of message. /// /// The type of message to handle. public interface IHandle : IProcessMessage where TEvent : IEvent { /// /// Handles the message synchronously. /// /// The message. void Handle(TEvent message); } /// /// Denotes a class which can handle a particular type of message. /// /// The type of message to handle. public interface IHandleAsync : IProcessMessageAsync where TEvent : IEvent { /// /// Handles the message asynchronously. /// /// The message. void HandleAsync(TEvent message); } }