NoStorage.cs 747 B

1234567891011121314151617181920212223242526272829
  1. namespace Wayne.Lib.Log
  2. {
  3. /// <summary>
  4. /// The NoStorage event storage class does not store any event entries -- only the
  5. /// currently registered subscribers will get the events.
  6. /// </summary>
  7. internal class NoStorage : ISubscriptionStorage
  8. {
  9. #region Methods
  10. public void Add(string eventSubscriberId, EventLogEntry eventLogEntry)
  11. {
  12. // Ignore.
  13. }
  14. public void Remove(string eventSubscriberId, EventLogEntry eventLogEntry)
  15. {
  16. // Ignore.
  17. }
  18. public EventLogEntry[] GetStoredEvents(string eventSubscriberId)
  19. {
  20. // Return an empty array.
  21. return new EventLogEntry[0];
  22. }
  23. #endregion
  24. }
  25. }