IEventSubscriber.cs 691 B

123456789101112131415161718192021222324252627
  1. namespace Wayne.Lib.Log
  2. {
  3. /// <summary>
  4. /// Interface that event subscribers should implement.
  5. /// </summary>
  6. public interface IEventSubscriber
  7. {
  8. #region Properties
  9. /// <summary>
  10. /// Identifies the subscriber. This name is used in the configuration to identify the receiver of the events.
  11. /// </summary>
  12. string SubscriberId { get; }
  13. #endregion
  14. #region Methods
  15. /// <summary>
  16. /// Called when an event should be handled by this subscriber.
  17. /// </summary>
  18. /// <param name="eventLogEntry"></param>
  19. void HandleEvent(EventLogEntry eventLogEntry);
  20. #endregion
  21. }
  22. }