ISubscriptionStorage.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. namespace Wayne.Lib.Log
  2. {
  3. /// <summary>
  4. /// The ISubscriptionStorage describes an event entry storage used by event log subscribers.
  5. /// </summary>
  6. internal interface ISubscriptionStorage
  7. {
  8. #region Methods
  9. /// <summary>
  10. /// Adds an EventLogEntry to the storage.
  11. /// </summary>
  12. /// <param name="eventSubscriberId"></param>
  13. /// <param name="eventLogEntry"></param>
  14. void Add(string eventSubscriberId, EventLogEntry eventLogEntry);
  15. /// <summary>
  16. /// Removes an EventLogEntry from the storage.
  17. /// </summary>
  18. /// <param name="eventSubscriberId"></param>
  19. /// <param name="eventLogEntry"></param>
  20. void Remove(string eventSubscriberId, EventLogEntry eventLogEntry);
  21. /// <summary>
  22. /// Returns an array of EventLogEntries containing the entries for the given eventSubscriberId
  23. /// that is in the storage.
  24. /// </summary>
  25. /// <param name="eventSubscriberId"></param>
  26. /// <returns></returns>
  27. EventLogEntry[] GetStoredEvents(string eventSubscriberId);
  28. #endregion
  29. }
  30. }