1234567891011121314151617181920212223242526272829 |
- namespace Wayne.Lib.Log
- {
- /// <summary>
- /// The NoStorage event storage class does not store any event entries -- only the
- /// currently registered subscribers will get the events.
- /// </summary>
- internal class NoStorage : ISubscriptionStorage
- {
- #region Methods
- public void Add(string eventSubscriberId, EventLogEntry eventLogEntry)
- {
- // Ignore.
- }
- public void Remove(string eventSubscriberId, EventLogEntry eventLogEntry)
- {
- // Ignore.
- }
- public EventLogEntry[] GetStoredEvents(string eventSubscriberId)
- {
- // Return an empty array.
- return new EventLogEntry[0];
- }
- #endregion
- }
- }
|