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));
        }