Ejemplo n.º 1
0
        /// <summary>
        /// Gets the number of times a given event has been logged after the given snapshot.
        /// </summary>
        public int GetEventCountSinceSnapshot(int eventId, EventCountsSnapshot snapshot)
        {
            int count;

            m_eventCounter.TryGetValue(eventId, out count);
            return(count - snapshot.GetEventCount(eventId));
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Gets the number of times a given event has been logged after the given snapshot.
 /// </summary>
 public int GetEventCountSinceSnapshot(EventId eventId, EventCountsSnapshot snapshot)
 {
     return(GetEventCountSinceSnapshot((int)eventId, snapshot));
 }