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