12345678910111213141516171819202122232425262728293031323334 |
- namespace Wayne.Lib.Log
- {
- /// <summary>
- /// The ISubscriptionStorage describes an event entry storage used by event log subscribers.
- /// </summary>
- internal interface ISubscriptionStorage
- {
- #region Methods
- /// <summary>
- /// Adds an EventLogEntry to the storage.
- /// </summary>
- /// <param name="eventSubscriberId"></param>
- /// <param name="eventLogEntry"></param>
- void Add(string eventSubscriberId, EventLogEntry eventLogEntry);
- /// <summary>
- /// Removes an EventLogEntry from the storage.
- /// </summary>
- /// <param name="eventSubscriberId"></param>
- /// <param name="eventLogEntry"></param>
- void Remove(string eventSubscriberId, EventLogEntry eventLogEntry);
- /// <summary>
- /// Returns an array of EventLogEntries containing the entries for the given eventSubscriberId
- /// that is in the storage.
- /// </summary>
- /// <param name="eventSubscriberId"></param>
- /// <returns></returns>
- EventLogEntry[] GetStoredEvents(string eventSubscriberId);
- #endregion
- }
- }
|